diff options
author | Eric Christopher <echristo@apple.com> | 2006-02-02 21:50:47 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2006-02-02 21:50:47 +0000 |
commit | a5f0000db010e84d4508a8aa480e4360b6609718 (patch) | |
tree | 9be575eada66011930e2228fac19fd24e5914373 | |
parent | 5eb2d2b09426fe9518afe641a6a783498b8e52b4 (diff) | |
download | nasm-a5f0000db010e84d4508a8aa480e4360b6609718.tar.gz |
2006-02-02 Eric Christopher <echristo@apple.com>
Wade Tregaskis <wtregaskis@apple.com>
* output/outmacho.c (macho_cleanup): Depend on symbols
existing.
-rw-r--r-- | output/outmacho.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/output/outmacho.c b/output/outmacho.c index e3603b7f..0917cbeb 100644 --- a/output/outmacho.c +++ b/output/outmacho.c @@ -1256,11 +1256,13 @@ static void macho_cleanup(int debuginfo) 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); + } } } |