aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/common_allocation.c1
-rw-r--r--src/util/disk.c1
2 files changed, 2 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}
diff --git a/src/util/disk.c b/src/util/disk.c
index e0227be70..26b615df9 100644
--- a/src/util/disk.c
+++ b/src/util/disk.c
@@ -605,6 +605,7 @@ GNUNET_DISK_mktemp (const char *t)
605 umask (omask); 605 umask (omask);
606 if (0 != CLOSE (fd)) 606 if (0 != CLOSE (fd))
607 LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_WARNING, "close", fn); 607 LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_WARNING, "close", fn);
608 GNUNET_free (fn);
608 return fn; 609 return fn;
609} 610}
610 611