summaryrefslogtreecommitdiff
path: root/tbdiff_create.c
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2011-10-17 11:48:51 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2011-10-17 11:48:51 +0100
commitfa85a17045e56479c0ec69a40a177c013f487291 (patch)
tree61aca0d795491059834f297d4901c372d5372426 /tbdiff_create.c
parent30db9be89e11712d26bc46752d75c4cf86760bd7 (diff)
downloadtbdiff-fa85a17045e56479c0ec69a40a177c013f487291.tar.gz
Added xattr support
Fixed inconsequential memory leak in tbdiff_create.c Lost memory would be cleaned up by OS at exit, but valgrind complains
Diffstat (limited to 'tbdiff_create.c')
-rw-r--r--tbdiff_create.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tbdiff_create.c b/tbdiff_create.c
index 8bc68c7..88dd405 100644
--- a/tbdiff_create.c
+++ b/tbdiff_create.c
@@ -71,7 +71,10 @@ main(int argc,
int err;
if((err = tbd_create(fp, tstat[0], tstat[1])) != 0) {
- fclose(fp);
+ fclose(fp);
+ tbd_stat_free(tstat[0]);
+ tbd_stat_free(tstat[1]);
+
remove(argv[1]);
fprintf(stderr, "Error: Failed to create tbdiff image (err=%d).\n", err);
switch (err) {