[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r2747 - GNUnet/src/applications/fs/module
From: |
grothoff |
Subject: |
[GNUnet-SVN] r2747 - GNUnet/src/applications/fs/module |
Date: |
Fri, 5 May 2006 16:49:19 -0700 (PDT) |
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;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r2747 - GNUnet/src/applications/fs/module,
grothoff <=