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) | |
download | gnunet-3ee7dfcf5926f50810de4cba271153a71715b3f8.tar.gz gnunet-3ee7dfcf5926f50810de4cba271153a71715b3f8.zip |
-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 791366073..25213f2ca 100644 --- a/src/fs/fs_publish_ublock.c +++ b/src/fs/fs_publish_ublock.c | |||
@@ -150,8 +150,8 @@ ublock_put_cont (void *cls, | |||
150 | * @param bo per-block options | 150 | * @param bo per-block options |
151 | * @param options publication options | 151 | * @param options publication options |
152 | * @param cont continuation | 152 | * @param cont continuation |
153 | * @param cont_cls closure for cont | 153 | * @param cont_cls closure for @a cont |
154 | * @return NULL on error ('cont' will still be called) | 154 | * @return NULL on error (@a cont will still be called) |
155 | */ | 155 | */ |
156 | struct GNUNET_FS_PublishUblockContext * | 156 | struct GNUNET_FS_PublishUblockContext * |
157 | GNUNET_FS_publish_ublock_ (struct GNUNET_FS_Handle *h, | 157 | GNUNET_FS_publish_ublock_ (struct GNUNET_FS_Handle *h, |
@@ -236,6 +236,7 @@ GNUNET_FS_publish_ublock_ (struct GNUNET_FS_Handle *h, | |||
236 | ulen + slen + mdsize, | 236 | ulen + slen + mdsize, |
237 | &skey, &iv, | 237 | &skey, &iv, |
238 | &ub_enc[1]); | 238 | &ub_enc[1]); |
239 | GNUNET_free (ub_plain); | ||
239 | ub_enc->purpose.size = htonl (ulen + slen + mdsize + | 240 | ub_enc->purpose.size = htonl (ulen + slen + mdsize + |
240 | sizeof (struct UBlock) | 241 | sizeof (struct UBlock) |
241 | - sizeof (struct GNUNET_CRYPTO_EcdsaSignature)); | 242 | - sizeof (struct GNUNET_CRYPTO_EcdsaSignature)); |