diff options
-rw-r--r-- | srcpos.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -293,13 +293,15 @@ srcpos_string(struct srcpos *pos) void srcpos_verror(struct srcpos *pos, const char *fmt, va_list va) { - const char *srcstr; + char *srcstr; srcstr = srcpos_string(pos); fprintf(stderr, "Error: %s ", srcstr); vfprintf(stderr, fmt, va); fprintf(stderr, "\n"); + + free(srcstr); } void |