source:
patches/bc-1.06.95-memory_leak-1.patch@
e979069
Last change on this file since e979069 was 09c0ac7, checked in by , 9 years ago | |
---|---|
|
|
File size: 1.4 KB |
-
bc-1.06.95
Submitted By: Bruce Dubbs (bdubbs at linuxfromscratch dot org) Date: 2014-04-18 Initial Package Version: 1.06.95 Origin: Gentoo Description: Fixes memory leaks and an uninitialized variable diff -Naur bc-1.06.95.orig/bc/bc.y bc-1.06.95/bc/bc.y
old new 569 569 generate (">"); 570 570 break; 571 571 } 572 free($2); 572 573 } 573 574 | expression '+' expression 574 575 { -
bc/storage.c
diff -Naur bc-1.06.95.orig/bc/storage.c bc-1.06.95/bc/storage.c
old new 99 99 { 100 100 f = &functions[indx]; 101 101 f->f_defined = FALSE; 102 f->f_void = FALSE; 102 103 f->f_body = (char *) bc_malloc (BC_START_SIZE); 103 104 f->f_body_size = BC_START_SIZE; 104 105 f->f_code_size = 0; -
bc/util.c
diff -Naur bc-1.06.95.orig/bc/util.c bc-1.06.95/bc/util.c
old new 602 602 case FUNCTDEF: 603 603 if (id->f_name != 0) 604 604 { 605 if (namekind != FUNCT) 606 free(name); 605 free(name); 607 606 /* Check to see if we are redefining a math lib function. */ 608 607 if (use_math && namekind == FUNCTDEF && id->f_name <= 6) 609 608 id->f_name = next_func++;
Note:
See TracBrowser
for help on using the repository browser.