From e7ee60e918bbda253c8a362dd21fc8dbab9f0ebd Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 5 Sep 2014 13:21:24 +0000 Subject: [PATCH] - free memory on error, coverity #13058 --- src/cadet/gnunet-service-cadet_connection.c | 2 ++ 1 file changed, 2 insertions(+) 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, -- 2.25.1