aboutsummaryrefslogtreecommitdiff
path: root/src/cadet
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-09-05 13:21:24 +0000
committerBart Polot <bart@net.in.tum.de>2014-09-05 13:21:24 +0000
commite7ee60e918bbda253c8a362dd21fc8dbab9f0ebd (patch)
treebd9bb233fa6ceae114105377f88f842442ff9d8a /src/cadet
parent4833f5a9fe9b80de981707e517213fe22a9571c2 (diff)
downloadgnunet-e7ee60e918bbda253c8a362dd21fc8dbab9f0ebd.tar.gz
gnunet-e7ee60e918bbda253c8a362dd21fc8dbab9f0ebd.zip
- free memory on error, coverity #13058
Diffstat (limited to 'src/cadet')
-rw-r--r--src/cadet/gnunet-service-cadet_connection.c2
1 files changed, 2 insertions, 0 deletions
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,
1660 size, &own_pos); 1660 size, &own_pos);
1661 if (NULL == path) 1661 if (NULL == path)
1662 return GNUNET_OK; 1662 return GNUNET_OK;
1663
1663 if (0 == own_pos) 1664 if (0 == own_pos)
1664 { 1665 {
1665 GNUNET_break_op (0); 1666 GNUNET_break_op (0);
@@ -1675,6 +1676,7 @@ GCC_handle_create (void *cls, const struct GNUNET_PeerIdentity *peer,
1675 { 1676 {
1676 /* If we are destination, why did the creation fail? */ 1677 /* If we are destination, why did the creation fail? */
1677 GNUNET_break (0); 1678 GNUNET_break (0);
1679 path_destroy (path);
1678 return GNUNET_OK; 1680 return GNUNET_OK;
1679 } 1681 }
1680 send_broken_unknown (cid, &my_full_id, 1682 send_broken_unknown (cid, &my_full_id,