aboutsummaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/fs_publish.c1
-rw-r--r--src/fs/gnunet-service-fs.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/src/fs/fs_publish.c b/src/fs/fs_publish.c
index 6d3bbe7f66..3501416ad8 100644
--- a/src/fs/fs_publish.c
+++ b/src/fs/fs_publish.c
@@ -1334,7 +1334,6 @@ GNUNET_FS_publish_ksk (struct GNUNET_FS_Handle *h,
if (pkc->mdsize == -1)
{
GNUNET_break (0);
- GNUNET_free (uris);
GNUNET_free (pkc->kb);
if (pkc->dsh != NULL)
GNUNET_DATASTORE_disconnect (pkc->dsh, GNUNET_NO);
diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c
index fcb58b692f..ed817e8484 100644
--- a/src/fs/gnunet-service-fs.c
+++ b/src/fs/gnunet-service-fs.c
@@ -2959,9 +2959,9 @@ transmit_result (void *cls,
pr->replies_pending = reply->next;
memcpy (&cbuf[ret], &reply[1], reply->msize);
ret += reply->msize;
- GNUNET_free (pr);
+ GNUNET_free (reply);
}
- return 0;
+ return ret;
}