Fix possible memory leak in mkdir_and_parents()
This commit is contained in:
parent
e78e65ef22
commit
bc29c84610
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ mkdir_and_parents(const char *path)
|
|||
p[i] = 0;
|
||||
|
||||
if (do_dir(p) < 0) {
|
||||
free(p);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue