diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-03-31 09:21:39 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-03-31 09:21:39 +0000 |
commit | 20409dca4f6b55c3cbbc76e8b80851ea821cd4a8 (patch) | |
tree | ea09cb9abd5567869696ad085ccddc70d8850606 /src/dv/dv_api.c | |
parent | e96b5f1bb1269cdde73e8a178344069f61080804 (diff) | |
download | gnunet-20409dca4f6b55c3cbbc76e8b80851ea821cd4a8.tar.gz gnunet-20409dca4f6b55c3cbbc76e8b80851ea821cd4a8.zip |
coverity fixes, test case tweak
Diffstat (limited to 'src/dv/dv_api.c')
-rw-r--r-- | src/dv/dv_api.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dv/dv_api.c b/src/dv/dv_api.c index ace020c3e..7b1a4f0cf 100644 --- a/src/dv/dv_api.c +++ b/src/dv/dv_api.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * @file dv/dv_api.c | 22 | * @file dv/dv_api.c |
23 | * @brief library to access the DV service | 23 | * @brief library to access the DV service |
24 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
25 | * @author Not Nathan Evans | 25 | * @author Nathan Evans |
26 | */ | 26 | */ |
27 | #include "platform.h" | 27 | #include "platform.h" |
28 | #include "gnunet_bandwidth_lib.h" | 28 | #include "gnunet_bandwidth_lib.h" |
@@ -379,7 +379,10 @@ GNUNET_DV_connect (struct GNUNET_SCHEDULER_Handle *sched, | |||
379 | handle->receive_cls = receive_handler_cls; | 379 | handle->receive_cls = receive_handler_cls; |
380 | 380 | ||
381 | if (handle->client == NULL) | 381 | if (handle->client == NULL) |
382 | return NULL; | 382 | { |
383 | GNUNET_free(handle); | ||
384 | return NULL; | ||
385 | } | ||
383 | 386 | ||
384 | GNUNET_CLIENT_receive (handle->client, | 387 | GNUNET_CLIENT_receive (handle->client, |
385 | &handle_message_receipt, | 388 | &handle_message_receipt, |