1
0
mirror of https://git.disroot.org/80486DX2-66/polonium.git synced 2024-11-09 15:02:20 +05:30

main.c: my_basename: free path after using

This commit is contained in:
Intel A80486DX2-66 2024-08-06 23:08:19 +03:00
parent e12a75788a
commit 678468e363
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -119,6 +119,8 @@ static char* my_basename(const char* raw_path) {
memcpy(base, last_slash + 1, fname_len); memcpy(base, last_slash + 1, fname_len);
base[fname_len] = '\0'; base[fname_len] = '\0';
free(path);
return base; return base;
} }