summaryrefslogtreecommitdiffstats
path: root/compat/asprintf.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-07-11 19:50:46 +0000
committerTiago Cunha <tcunha@gmx.com>2012-07-11 19:50:46 +0000
commit513bd8f62d4159bae1d9825c1300bcf83287c1d3 (patch)
tree5b3b7398da7c2245c460f2a353ceeb043b5c66f9 /compat/asprintf.c
parent1f5e6e35d5046693f0ef5ec76535f517757b7122 (diff)
Remove remaining xfree calls from the portable version.
Diffstat (limited to 'compat/asprintf.c')
-rw-r--r--compat/asprintf.c2
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;
}