diff options
Diffstat (limited to 'compat/asprintf.c')
-rw-r--r-- | compat/asprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/asprintf.c b/compat/asprintf.c index 861232a5..66f00996 100644 --- a/compat/asprintf.c +++ b/compat/asprintf.c @@ -53,7 +53,7 @@ vasprintf(char **ret, const char *fmt, va_list ap) *ret = xmalloc(n + 1); if ((n = vsnprintf(*ret, n + 1, fmt, ap2)) < 0) { - xfree(*ret); + free(*ret); goto error; } |