projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41c3418
)
leak
author
Christian Grothoff
<christian@grothoff.org>
Tue, 19 Jul 2011 09:56:41 +0000
(09:56 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Tue, 19 Jul 2011 09:56:41 +0000
(09:56 +0000)
src/fs/fs_publish.c
patch
|
blob
|
history
diff --git
a/src/fs/fs_publish.c
b/src/fs/fs_publish.c
index e60960b95eb1b69e9e4c990ab3a31751eea7d55e..a52856c1f9b81a720fa3d750bd020cbbe1d01372 100644
(file)
--- a/
src/fs/fs_publish.c
+++ b/
src/fs/fs_publish.c
@@
-683,6
+683,9
@@
publish_content (struct GNUNET_FS_PublishContext *pc)
GNUNET_free_non_null (raw_data);
dirpos = dirpos->next;
}
+ GNUNET_free_non_null (p->data.dir.dir_data);
+ p->data.dir.dir_data = NULL;
+ p->data.dir.dir_size = 0;
GNUNET_FS_directory_builder_finish (db,
&p->data.dir.dir_size,
&p->data.dir.dir_data);