aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_allocation.c
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-06-26 15:00:42 +0200
committerJulius Bünger <buenger@mytum.de>2018-06-26 15:00:42 +0200
commit8790a0dbeae9be48306661f9639931b6cb5d6632 (patch)
treef85df3c8100ed0b799da78ffc51e11c1a0801026 /src/util/common_allocation.c
parent52b006735e61d184281b56094758ecdc7355ed84 (diff)
downloadgnunet-8790a0dbeae9be48306661f9639931b6cb5d6632.tar.gz
gnunet-8790a0dbeae9be48306661f9639931b6cb5d6632.zip
fix several memory leaks
Diffstat (limited to 'src/util/common_allocation.c')
-rw-r--r--src/util/common_allocation.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/common_allocation.c b/src/util/common_allocation.c
index 53e1a6707..fc7953df2 100644
--- a/src/util/common_allocation.c
+++ b/src/util/common_allocation.c
@@ -486,6 +486,7 @@ GNUNET_asprintf (char **buf,
486 *buf = GNUNET_malloc (ret + 1); 486 *buf = GNUNET_malloc (ret + 1);
487 va_start (args, format); 487 va_start (args, format);
488 ret = VSPRINTF (*buf, format, args); 488 ret = VSPRINTF (*buf, format, args);
489 GNUNET_free (buf);
489 va_end (args); 490 va_end (args);
490 return ret; 491 return ret;
491} 492}