Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 187307 Details for
Bug 264889
sys-devel/bc-1.06.95 is leaking memory
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
memleak_fix.patch (text/plain), 682 bytes, created by
Mattias Nissler
on 2009-04-04 15:37:36 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Mattias Nissler
Created:
2009-04-04 15:37:36 UTC
Size:
682 bytes
patch
obsolete
>diff --git a/bc/bc.y b/bc/bc.y >index 14dc4be..bd91c38 100644 >--- a/bc/bc.y >+++ b/bc/bc.y >@@ -569,6 +569,7 @@ expression : named_expression ASSIGN_OP > generate (">"); > break; > } >+ free($2); > } > | expression '+' expression > { >diff --git a/bc/util.c b/bc/util.c >index 30beaf9..26e2e85 100644 >--- a/bc/util.c >+++ b/bc/util.c >@@ -602,8 +602,7 @@ lookup (name, namekind) > case FUNCTDEF: > if (id->f_name != 0) > { >- if (namekind != FUNCT) >- free(name); >+ free(name); > /* Check to see if we are redefining a math lib function. */ > if (use_math && namekind == FUNCTDEF && id->f_name <= 6) > id->f_name = next_func++;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 264889
: 187307