aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_fs_unindex_persistence.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/test_fs_unindex_persistence.c')
-rw-r--r--src/fs/test_fs_unindex_persistence.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/fs/test_fs_unindex_persistence.c b/src/fs/test_fs_unindex_persistence.c
index 43d03fcb6..3483b7e09 100644
--- a/src/fs/test_fs_unindex_persistence.c
+++ b/src/fs/test_fs_unindex_persistence.c
@@ -84,11 +84,17 @@ static void
84abort_unindex_task (void *cls, 84abort_unindex_task (void *cls,
85 const struct GNUNET_SCHEDULER_TaskContext *tc) 85 const struct GNUNET_SCHEDULER_TaskContext *tc)
86{ 86{
87 GNUNET_FS_unindex_stop (unindex); 87 if (unindex != NULL)
88 unindex = NULL; 88 {
89 GNUNET_DISK_directory_remove (fn); 89 GNUNET_FS_unindex_stop (unindex);
90 GNUNET_free (fn); 90 unindex = NULL;
91 fn = NULL; 91 }
92 if (fn != NULL)
93 {
94 GNUNET_DISK_directory_remove (fn);
95 GNUNET_free (fn);
96 fn = NULL;
97 }
92} 98}
93 99
94 100