fix memory leak

This commit is contained in:
Michael Stapelberg 2011-07-13 16:09:30 +02:00
parent 7ab9167536
commit e924ce2d19

View File

@ -136,6 +136,9 @@ char *auto_detect_format() {
}
out:
if (parentname)
free(parentname);
closedir(dir);
return format;