mirror of
https://git.disroot.org/80486DX2-66/polonium.git
synced 2024-11-08 13:42:31 +05:30
main.c: my_basename: free path
after using
This commit is contained in:
parent
e12a75788a
commit
678468e363
@ -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 New Issue
Block a user