[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r27565 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r27565 - gnunet/src/transport |
Date: |
Tue, 25 Jun 2013 13:12:49 +0200 |
Author: wachs
Date: 2013-06-25 13:12:49 +0200 (Tue, 25 Jun 2013)
New Revision: 27565
Modified:
gnunet/src/transport/test_plugin_transport.c
Log:
fixing coverity 10464: Resource leak
Modified: gnunet/src/transport/test_plugin_transport.c
===================================================================
--- gnunet/src/transport/test_plugin_transport.c 2013-06-25 11:08:33 UTC
(rev 27564)
+++ gnunet/src/transport/test_plugin_transport.c 2013-06-25 11:12:49 UTC
(rev 27565)
@@ -565,6 +565,9 @@
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Hostkey `%s' missing. Exiting.\n",
HOSTKEY_FILE);
+ GNUNET_free (keyfile);
+ end_badly_now ();
+ return;
}
if (GNUNET_OK != GNUNET_DISK_directory_create_for_file (keyfile))
@@ -572,6 +575,7 @@
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Could not create a directory for hostkey `%s'. Exiting.\n",
keyfile);
+ GNUNET_free (keyfile);
end_badly_now ();
return;
}
@@ -581,6 +585,7 @@
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Could not copy hostkey `%s' to destination `%s'.
Exiting.\n",
HOSTKEY_FILE, keyfile);
+ GNUNET_free (keyfile);
end_badly_now ();
return;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r27565 - gnunet/src/transport,
gnunet <=