summaryrefslogtreecommitdiffstats
path: root/src/dfxml.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-01-23 10:29:04 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2016-01-23 10:29:04 +0100
commit7a035acdd1ab72e63af8661aad791cb59d2cb8ed (patch)
tree2c9f0c2dc819e41fea28b046520bfa9131f64a99 /src/dfxml.c
parent0675f6f68315c76cc3019e6fa4f34575eee793e1 (diff)
Avoid a file descriptor leak when stopping and resuming PhotoRec
Diffstat (limited to 'src/dfxml.c')
-rw-r--r--src/dfxml.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dfxml.c b/src/dfxml.c
index 654cc7d..ce3e79f 100644
--- a/src/dfxml.c
+++ b/src/dfxml.c
@@ -330,5 +330,6 @@ void xml_log_file_recovered(const file_recovery_t *file_recovery)
}
xml_pop("byte_runs");
xml_pop("fileobject");
+ fflush(xml_handle);
}
#endif