diff options
-rw-r--r-- | src/auto_detect_format.c | 3 |
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; |