main.c: my_basename: free path
after using
This commit is contained in:
parent
e12a75788a
commit
678468e363
1 changed files with 2 additions and 0 deletions
|
@ -119,6 +119,8 @@ static char* my_basename(const char* raw_path) {
|
|||
memcpy(base, last_slash + 1, fname_len);
|
||||
base[fname_len] = '\0';
|
||||
|
||||
free(path);
|
||||
|
||||
return base;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue