diff options
author | t3sserakt <t3ss@posteo.de> | 2021-10-28 16:13:47 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2021-10-28 16:13:47 +0200 |
commit | 6fb788ca2ec44837ea10a36be7fd0030fb08955b (patch) | |
tree | cba4a385aa8ab914d02db9a702f6c6230aa89a2a /src/transport/transport_api_cmd_start_peer.c | |
parent | 1609d627e509043a946f611d7589105cfae2364d (diff) | |
download | gnunet-6fb788ca2ec44837ea10a36be7fd0030fb08955b.tar.gz gnunet-6fb788ca2ec44837ea10a36be7fd0030fb08955b.zip |
- fixed coverity issues
Diffstat (limited to 'src/transport/transport_api_cmd_start_peer.c')
-rw-r--r-- | src/transport/transport_api_cmd_start_peer.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/transport/transport_api_cmd_start_peer.c b/src/transport/transport_api_cmd_start_peer.c index dc19f10eb..a026d48cc 100644 --- a/src/transport/transport_api_cmd_start_peer.c +++ b/src/transport/transport_api_cmd_start_peer.c | |||
@@ -235,6 +235,10 @@ start_peer_run (void *cls, | |||
235 | 235 | ||
236 | sps->tl_system = tl_system; | 236 | sps->tl_system = tl_system; |
237 | 237 | ||
238 | LOG (GNUNET_ERROR_TYPE_ERROR, | ||
239 | "Creating testing library with key number %u\n", | ||
240 | sps->no); | ||
241 | |||
238 | if (GNUNET_SYSERR == | 242 | if (GNUNET_SYSERR == |
239 | GNUNET_TESTING_configuration_create (tl_system, | 243 | GNUNET_TESTING_configuration_create (tl_system, |
240 | sps->cfg)) | 244 | sps->cfg)) |
@@ -255,9 +259,10 @@ start_peer_run (void *cls, | |||
255 | if (NULL == sps->peer) | 259 | if (NULL == sps->peer) |
256 | { | 260 | { |
257 | LOG (GNUNET_ERROR_TYPE_ERROR, | 261 | LOG (GNUNET_ERROR_TYPE_ERROR, |
258 | "Testing library failed to create unique configuration based on `%s': `%s'\n", | 262 | "Testing library failed to create unique configuration based on `%s': `%s' with key number %u\n", |
259 | sps->cfgname, | 263 | sps->cfgname, |
260 | emsg); | 264 | emsg, |
265 | sps->no); | ||
261 | GNUNET_free (emsg); | 266 | GNUNET_free (emsg); |
262 | GNUNET_TESTING_interpreter_fail (is); | 267 | GNUNET_TESTING_interpreter_fail (is); |
263 | return; | 268 | return; |
@@ -337,6 +342,11 @@ start_peer_run (void *cls, | |||
337 | return; | 342 | return; |
338 | } | 343 | } |
339 | sps->rh_task = GNUNET_SCHEDULER_add_now (retrieve_hello, sps); | 344 | sps->rh_task = GNUNET_SCHEDULER_add_now (retrieve_hello, sps); |
345 | GNUNET_free (home); | ||
346 | GNUNET_free (transport_unix_path); | ||
347 | GNUNET_free (tcp_communicator_unix_path); | ||
348 | GNUNET_free (udp_communicator_unix_path); | ||
349 | GNUNET_free (bindto); | ||
340 | } | 350 | } |
341 | 351 | ||
342 | 352 | ||