bugfixes, including double frees
authorChristian Grothoff <christian@grothoff.org>
Tue, 20 Oct 2009 19:28:31 +0000 (19:28 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 20 Oct 2009 19:28:31 +0000 (19:28 +0000)
src/fs/fs_publish.c
src/fs/gnunet-service-fs.c

index 6d3bbe7f66e491a4fcc1b89f792f05617ab7d69b..3501416ad8eeb7951e0558ff97967c41a0274239 100644 (file)
@@ -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);
index fcb58b692fe4dc8987c32b20b69318d6aab8236e..ed817e8484e27993c4ac5f49dadb4a34813aa541 100644 (file)
@@ -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;
 }