Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:GA
bc
bc-1.06.95-memleak.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bc-1.06.95-memleak.patch of Package bc
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++;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor