Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
916eea04
Commit
916eea04
authored
Jan 29, 2012
by
Shenghou Ma
Committed by
Russ Cox
Jan 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5l, 6l, 8l, ld: remove memory leaks
R=golang-dev, rsc CC=golang-dev
https://golang.org/cl/5569085
parent
ba31d662
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
0 deletions
+4
-0
asm.c
src/cmd/5l/asm.c
+1
-0
asm.c
src/cmd/6l/asm.c
+1
-0
asm.c
src/cmd/8l/asm.c
+1
-0
go.c
src/cmd/ld/go.c
+1
-0
No files found.
src/cmd/5l/asm.c
View file @
916eea04
...
...
@@ -91,6 +91,7 @@ needlib(char *name)
/* reuse hash code in symbol table */
p
=
smprint
(
".dynlib.%s"
,
name
);
s
=
lookup
(
p
,
0
);
free
(
p
);
if
(
s
->
type
==
0
)
{
s
->
type
=
100
;
// avoid SDATA, etc.
return
1
;
...
...
src/cmd/6l/asm.c
View file @
916eea04
...
...
@@ -112,6 +112,7 @@ needlib(char *name)
/* reuse hash code in symbol table */
p
=
smprint
(
".elfload.%s"
,
name
);
s
=
lookup
(
p
,
0
);
free
(
p
);
if
(
s
->
type
==
0
)
{
s
->
type
=
100
;
// avoid SDATA, etc.
return
1
;
...
...
src/cmd/8l/asm.c
View file @
916eea04
...
...
@@ -108,6 +108,7 @@ needlib(char *name)
/* reuse hash code in symbol table */
p
=
smprint
(
".dynlib.%s"
,
name
);
s
=
lookup
(
p
,
0
);
free
(
p
);
if
(
s
->
type
==
0
)
{
s
->
type
=
100
;
// avoid SDATA, etc.
return
1
;
...
...
src/cmd/ld/go.c
View file @
916eea04
...
...
@@ -482,6 +482,7 @@ loaddynimport(char *file, char *pkg, char *p, int n)
if
(
q
)
*
q
++
=
'\0'
;
s
=
lookup
(
name
,
0
);
free
(
name
);
if
(
s
->
type
==
0
||
s
->
type
==
SXREF
)
{
s
->
dynimplib
=
lib
;
s
->
dynimpname
=
def
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment