Author: grothoff
Date: 2006-05-05 16:49:18 -0700 (Fri, 05 May 2006)
New Revision: 2747
Modified:
GNUnet/src/applications/fs/module/migration.c
Log:
fixing memory leak
Modified: GNUnet/src/applications/fs/module/migration.c
===================================================================
--- GNUnet/src/applications/fs/module/migration.c 2006-05-05 23:45:50 UTC
(rev 2746)
+++ GNUnet/src/applications/fs/module/migration.c 2006-05-05 23:49:18 UTC
(rev 2747)
@@ -131,10 +131,12 @@
if (ntohl(content->type) == ONDEMAND_BLOCK) {
if (ONDEMAND_getIndexed(datastore, content, &key, &enc) != OK) {
+ FREE(content);
+ content = NULL;
MUTEX_UNLOCK(&lock);
return 0;
}
-
+ FREE(content);
content = enc;
}
_______________________________________________
GNUnet-SVN mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnunet-svn