diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-09-30 12:55:03 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-09-30 12:55:03 +0000 |
commit | 87ed5554b390cbf16a9bd15c4aec13ab34d7f080 (patch) | |
tree | 57716c8c85d0d8f8e3463f5a1b766f51b4f22405 /src/testbed/testbed_api_hosts.c | |
parent | ec7d72a656a180ecdd25507439add2656d5bcbae (diff) | |
download | gnunet-87ed5554b390cbf16a9bd15c4aec13ab34d7f080.tar.gz gnunet-87ed5554b390cbf16a9bd15c4aec13ab34d7f080.zip |
- fix misc. memleaks
Diffstat (limited to 'src/testbed/testbed_api_hosts.c')
-rw-r--r-- | src/testbed/testbed_api_hosts.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testbed/testbed_api_hosts.c b/src/testbed/testbed_api_hosts.c index ba6e9359a..e8417c0d8 100644 --- a/src/testbed/testbed_api_hosts.c +++ b/src/testbed/testbed_api_hosts.c | |||
@@ -1008,6 +1008,7 @@ clear_msg (void *cls, int result) | |||
1008 | GNUNET_assert (NULL != cp->shandle); | 1008 | GNUNET_assert (NULL != cp->shandle); |
1009 | cp->shandle = NULL; | 1009 | cp->shandle = NULL; |
1010 | GNUNET_free (cp->msg); | 1010 | GNUNET_free (cp->msg); |
1011 | cp->msg = NULL; | ||
1011 | } | 1012 | } |
1012 | 1013 | ||
1013 | 1014 | ||
@@ -1184,6 +1185,7 @@ GNUNET_TESTBED_controller_destroy_ (struct GNUNET_TESTBED_ControllerProc *cproc) | |||
1184 | free_argv (cproc->helper_argv); | 1185 | free_argv (cproc->helper_argv); |
1185 | cproc->host->controller_started = GNUNET_NO; | 1186 | cproc->host->controller_started = GNUNET_NO; |
1186 | cproc->host->locked = GNUNET_NO; | 1187 | cproc->host->locked = GNUNET_NO; |
1188 | GNUNET_free_non_null (cproc->msg); | ||
1187 | GNUNET_free (cproc); | 1189 | GNUNET_free (cproc); |
1188 | } | 1190 | } |
1189 | 1191 | ||