summaryrefslogtreecommitdiff
path: root/src/auto_detect_format.c
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2011-07-13 16:09:30 +0200
committerMichael Stapelberg <michael@stapelberg.de>2011-07-13 16:09:30 +0200
commite924ce2d1928960494445580498a2788cc40294f (patch)
tree32bd8e29f045b1ba338ffc7ae1e79e45e40a895f /src/auto_detect_format.c
parent7ab9167536e4ca0ccb5c5a797e693c484e0456d6 (diff)
fix memory leak
Diffstat (limited to 'src/auto_detect_format.c')
-rw-r--r--src/auto_detect_format.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/auto_detect_format.c b/src/auto_detect_format.c
index b8dfdfc..2df13f5 100644
--- a/src/auto_detect_format.c
+++ b/src/auto_detect_format.c
@@ -136,6 +136,9 @@ char *auto_detect_format() {
}
out:
+ if (parentname)
+ free(parentname);
+
closedir(dir);
return format;