diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2013-02-03 12:59:10 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2013-02-03 12:59:10 +0000 |
commit | 90bf3280edc1957b55dddc3d96678fb81f336d7c (patch) | |
tree | e97b394b043d0bd4d017e6ccca35e27a5e178fab | |
parent | 8a4aa1d816f553ffdf643b6874c9987a45a99ed4 (diff) |
-zero out cdata here as well
git-svn-id: https://gnunet.org/svn/gnunet@25991 140774ce-b5e7-0310-ab8b-a85725594a96
-rw-r--r-- | src/util/container_meta_data.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/container_meta_data.c b/src/util/container_meta_data.c index 3af457cc0a..a868e817da 100644 --- a/src/util/container_meta_data.c +++ b/src/util/container_meta_data.c @@ -880,6 +880,7 @@ GNUNET_CONTAINER_meta_data_serialize (const struct GNUNET_CONTAINER_MetaData hdr->entries = htonl (md->item_count - i); memcpy (&dst[sizeof (struct MetaDataHeader)], cdata, clen); GNUNET_free (cdata); + cdata = NULL; GNUNET_free (ent); rlen = clen + sizeof (struct MetaDataHeader); } |