From f5a87d9061fe08071b814a193d66a36623420257 Mon Sep 17 00:00:00 2001 From: LRN Date: Sat, 2 Feb 2013 17:26:03 +0000 Subject: [PATCH] Fix a memory leak in MD serializer --- src/util/container_meta_data.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.25.1