From: Eric C. <ech...@us...> - 2006-02-02 21:50:54
|
Update of /cvsroot/nasm/nasm/output In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3301/output Modified Files: outmacho.c Log Message: 2006-02-02 Eric Christopher <ech...@ap...> Wade Tregaskis <wtr...@ap...> * output/outmacho.c (macho_cleanup): Depend on symbols existing. Index: outmacho.c =================================================================== RCS file: /cvsroot/nasm/nasm/output/outmacho.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- outmacho.c 9 Dec 2005 00:27:26 -0000 1.6 +++ outmacho.c 2 Feb 2006 21:50:47 -0000 1.7 @@ -1256,11 +1256,13 @@ saa_free(strs); raa_free(extsyms); - while (syms->next) { - sym = syms; - syms = syms->next; + if (syms) { + while (syms->next) { + sym = syms; + syms = syms->next; - nasm_free (sym); + nasm_free (sym); + } } } |