diff options
author | Julius Bünger <buenger@mytum.de> | 2018-06-26 15:00:42 +0200 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2018-06-26 15:00:42 +0200 |
commit | 8790a0dbeae9be48306661f9639931b6cb5d6632 (patch) | |
tree | f85df3c8100ed0b799da78ffc51e11c1a0801026 /src/util/common_allocation.c | |
parent | 52b006735e61d184281b56094758ecdc7355ed84 (diff) | |
download | gnunet-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.c | 1 |
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 | } |