From: Bart Polot Date: Fri, 5 Sep 2014 13:21:24 +0000 (+0000) Subject: - free memory on error, coverity #13058 X-Git-Tag: initial-import-from-subversion-38251~3188 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e7ee60e918bbda253c8a362dd21fc8dbab9f0ebd;p=oweals%2Fgnunet.git - free memory on error, coverity #13058 --- diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index 6d38090a2..a7a3b9121 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c @@ -1660,6 +1660,7 @@ GCC_handle_create (void *cls, const struct GNUNET_PeerIdentity *peer, size, &own_pos); if (NULL == path) return GNUNET_OK; + if (0 == own_pos) { GNUNET_break_op (0); @@ -1675,6 +1676,7 @@ GCC_handle_create (void *cls, const struct GNUNET_PeerIdentity *peer, { /* If we are destination, why did the creation fail? */ GNUNET_break (0); + path_destroy (path); return GNUNET_OK; } send_broken_unknown (cid, &my_full_id,