gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit d52bf31b61ed385b7f7ea9ccb57d21224fff393b
parent fb61415cd42c7134ee6c5e6f9685007f37b80324
Author: Matthias Wachs <wachs@net.in.tum.de>
Date:   Thu, 10 Oct 2013 07:52:25 +0000

fixing resource leaks


Diffstat:
Msrc/namestore/namestore_api_common.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/namestore/namestore_api_common.c b/src/namestore/namestore_api_common.c @@ -571,6 +571,7 @@ GNUNET_NAMESTORE_value_to_string (uint32_t type, (off != data_size) ) { GNUNET_break_op (0); + GNUNET_free_non_null (cname); return NULL; } return cname; @@ -615,6 +616,7 @@ GNUNET_NAMESTORE_value_to_string (uint32_t type, (off != data_size) ) { GNUNET_break_op (0); + GNUNET_free_non_null (ptr); return NULL; } return ptr; @@ -632,6 +634,7 @@ GNUNET_NAMESTORE_value_to_string (uint32_t type, (off != data_size) ) { GNUNET_break_op (0); + GNUNET_free_non_null (mx); return NULL; } GNUNET_asprintf (&result, @@ -709,6 +712,7 @@ GNUNET_NAMESTORE_value_to_string (uint32_t type, (off != data_size) ) { GNUNET_break_op (0); + GNUNET_free_non_null (ns); return NULL; } return ns;