diff options
author | LRN <lrn1986@gmail.com> | 2013-02-02 17:26:03 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-02-02 17:26:03 +0000 |
commit | f5a87d9061fe08071b814a193d66a36623420257 (patch) | |
tree | 8ed5a02e0a41cde86ef76214085bed928f59b720 /src/util/container_meta_data.c | |
parent | e1442a1fc9da82ca6fe924ceb0df9bb57a5e9ad7 (diff) | |
download | gnunet-f5a87d9061fe08071b814a193d66a36623420257.tar.gz gnunet-f5a87d9061fe08071b814a193d66a36623420257.zip |
Fix a memory leak in MD serializer
Diffstat (limited to 'src/util/container_meta_data.c')
-rw-r--r-- | src/util/container_meta_data.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 | |||
925 | left -= strlen (pos->plugin_name) + 1; | 925 | left -= strlen (pos->plugin_name) + 1; |
926 | if (NULL != pos->mime_type) | 926 | if (NULL != pos->mime_type) |
927 | left -= strlen (pos->mime_type) + 1; | 927 | left -= strlen (pos->mime_type) + 1; |
928 | |||
929 | GNUNET_free_non_null (cdata); | ||
930 | cdata = NULL; | ||
931 | |||
928 | i++; | 932 | i++; |
929 | } | 933 | } |
930 | GNUNET_free (ent); | 934 | GNUNET_free (ent); |