diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-11-09 20:51:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-11-09 20:51:22 +0000 |
commit | 3ee7dfcf5926f50810de4cba271153a71715b3f8 (patch) | |
tree | 183709a87365c3e87d703f15e3dbe9939216834a /src/fs/fs_publish_ublock.c | |
parent | 97578eb9b15c91cd5375876c353e805261d0f8f7 (diff) |
-fix memory leak
Diffstat (limited to 'src/fs/fs_publish_ublock.c')
-rw-r--r-- | src/fs/fs_publish_ublock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fs/fs_publish_ublock.c b/src/fs/fs_publish_ublock.c index 7913660739..25213f2cae 100644 --- a/src/fs/fs_publish_ublock.c +++ b/src/fs/fs_publish_ublock.c @@ -150,8 +150,8 @@ ublock_put_cont (void *cls, * @param bo per-block options * @param options publication options * @param cont continuation - * @param cont_cls closure for cont - * @return NULL on error ('cont' will still be called) + * @param cont_cls closure for @a cont + * @return NULL on error (@a cont will still be called) */ struct GNUNET_FS_PublishUblockContext * GNUNET_FS_publish_ublock_ (struct GNUNET_FS_Handle *h, @@ -236,6 +236,7 @@ GNUNET_FS_publish_ublock_ (struct GNUNET_FS_Handle *h, ulen + slen + mdsize, &skey, &iv, &ub_enc[1]); + GNUNET_free (ub_plain); ub_enc->purpose.size = htonl (ulen + slen + mdsize + sizeof (struct UBlock) - sizeof (struct GNUNET_CRYPTO_EcdsaSignature)); |