From: LRN Date: Sat, 2 Feb 2013 17:26:03 +0000 (+0000) Subject: Fix a memory leak in MD serializer X-Git-Tag: initial-import-from-subversion-38251~10024 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f5a87d9061fe08071b814a193d66a36623420257;p=oweals%2Fgnunet.git Fix a memory leak in MD serializer --- diff --git a/src/util/container_meta_data.c b/src/util/container_meta_data.c index 668c126fa..9a02645c2 100644 --- a/src/util/container_meta_data.c +++ b/src/util/container_meta_data.c @@ -925,6 +925,10 @@ GNUNET_CONTAINER_meta_data_serialize (const struct GNUNET_CONTAINER_MetaData left -= strlen (pos->plugin_name) + 1; if (NULL != pos->mime_type) left -= strlen (pos->mime_type) + 1; + + GNUNET_free_non_null (cdata); + cdata = NULL; + i++; } GNUNET_free (ent);