diff options
-rw-r--r-- | src/libmach/dwarfpc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libmach/dwarfpc.c b/src/libmach/dwarfpc.c index 9c36cf08..31b6bb41 100644 --- a/src/libmach/dwarfpc.c +++ b/src/libmach/dwarfpc.c @@ -194,6 +194,7 @@ dwarfpctoline(Dwarf *d, ulong pc, char **cdir, char **dir, char **file, ulong *l newf = realloc(f, (nf+1)*sizeof(f[0])); if(newf == nil) goto out; + f = newf; f[nf++] = b.p; s = dwarfgetstring(&b); dwarfget128(&b); |