aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnunet-bcd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-05 20:51:32 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-05 20:51:32 +0000
commit709c048dc1e24f0b1cde544c41d60f898a698304 (patch)
treeda2f6a1d868c045a489709cc13630c2127912955 /src/gns/gnunet-bcd.c
parent3d6fe3cc4bb54d37737b3be87b73252fd78f6276 (diff)
-fix leaks
Diffstat (limited to 'src/gns/gnunet-bcd.c')
-rw-r--r--src/gns/gnunet-bcd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gns/gnunet-bcd.c b/src/gns/gnunet-bcd.c
index 5c57cbafde..0b8e533261 100644
--- a/src/gns/gnunet-bcd.c
+++ b/src/gns/gnunet-bcd.c
@@ -249,6 +249,10 @@ access_handler_callback (void *cls, struct MHD_Connection *connection,
{
GNUNET_break (0);
GNUNET_break (0 == CLOSE (fd));
+ GNUNET_free (deffile);
+ GNUNET_free (p);
+ GNUNET_DISK_directory_remove (tmp);
+ GNUNET_free (tmp);
return MHD_NO;
}
(void) MHD_add_response_header (response,
@@ -258,6 +262,7 @@ access_handler_callback (void *cls, struct MHD_Connection *connection,
MHD_HTTP_OK,
response);
MHD_destroy_response (response);
+ GNUNET_free (deffile);
GNUNET_free (p);
GNUNET_DISK_directory_remove (tmp);
GNUNET_free (tmp);