commit 3ee7dfcf5926f50810de4cba271153a71715b3f8
parent 97578eb9b15c91cd5375876c353e805261d0f8f7
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 9 Nov 2013 20:51:22 +0000
-fix memory leak
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git 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));