diff options
author | Eric Wong <e@80x24.org> | 2022-11-16 09:26:41 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-11-16 09:47:12 +0000 |
commit | a2bd27527ed535b2d61e7d247ec2fbf4991b6618 (patch) | |
tree | 502854129677a613e6786c00c6e9853d279199a8 | |
parent | 009b0233e0ffe467b3f25b959ae031da95ff169b (diff) | |
download | mwrap-a2bd27527ed535b2d61e7d247ec2fbf4991b6618.tar.gz |
Oops :x Fortunately, most allocations are tracked to a Perl location and the non-Perl code path is infrequently hit.
-rw-r--r-- | Mwrap.xs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -20,8 +20,8 @@ static SV *location_string(struct src_loc *l) char **s = backtrace_symbols((void *)l->k, 1); ret = newSVpvn(s[0], strlen(s[0])); - } - else { + free(s); + } else { ret = newSVpvn(l->k, l->capa - 1); } |