aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-09-05 11:40:07 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-09-05 11:40:07 +0000
commitacb2568116de77fcac08ab1ac8b4df81a886f4be (patch)
tree78b7bd0a722045add429d1595ade521b817a95c7 /src/testing
parent8f8ed9394c1889f6b302511ac400fa4d55fb1e78 (diff)
downloadgnunet-acb2568116de77fcac08ab1ac8b4df81a886f4be.tar.gz
gnunet-acb2568116de77fcac08ab1ac8b4df81a886f4be.zip
- fix memleaks
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testing/testing.c b/src/testing/testing.c
index db74f8897..66fcf11da 100644
--- a/src/testing/testing.c
+++ b/src/testing/testing.c
@@ -1201,10 +1201,12 @@ GNUNET_TESTING_peer_configure (struct GNUNET_TESTING_System *system,
1201 | GNUNET_DISK_PERM_USER_WRITE); 1201 | GNUNET_DISK_PERM_USER_WRITE);
1202 if (NULL == fd) 1202 if (NULL == fd)
1203 { 1203 {
1204 GNUNET_asprintf (&emsg_, _("Cannot open hostkey file: %s\n"), 1204 GNUNET_asprintf (&emsg_, _("Cannot open hostkey file `%s': %s\n"),
1205 STRERROR (errno)); 1205 hostkey_filename, STRERROR (errno));
1206 GNUNET_free (hostkey_filename);
1206 goto err_ret; 1207 goto err_ret;
1207 } 1208 }
1209 GNUNET_free (hostkey_filename);
1208 if (GNUNET_TESTING_HOSTKEYFILESIZE != 1210 if (GNUNET_TESTING_HOSTKEYFILESIZE !=
1209 GNUNET_DISK_file_write (fd, system->hostkeys_data 1211 GNUNET_DISK_file_write (fd, system->hostkeys_data
1210 + (key_number * GNUNET_TESTING_HOSTKEYFILESIZE), 1212 + (key_number * GNUNET_TESTING_HOSTKEYFILESIZE),