fix memory leak
This commit is contained in:
parent
7ab9167536
commit
e924ce2d19
@ -136,6 +136,9 @@ char *auto_detect_format() {
|
||||
}
|
||||
|
||||
out:
|
||||
if (parentname)
|
||||
free(parentname);
|
||||
|
||||
closedir(dir);
|
||||
|
||||
return format;
|
||||
|
Loading…
Reference in New Issue
Block a user