1
0
mirror of https://gittea.dev/nova/th.git synced 2026-01-30 16:50:10 -05:00

-fsanitize=address related compiler assisted debugging

This commit is contained in:
nova
2026-01-12 18:35:38 +01:00
parent 66f3f3bef6
commit 8734fa6ae4
4 changed files with 24 additions and 17 deletions

View File

@@ -33,6 +33,7 @@ char* get_mimetype(char *path){
FILE *cmd_open = popen(cmd, "r");
char *line = NULL;
size_t size = 0;
free(cmd);
if (getline(&line, &size, cmd_open) != -1){
pclose(cmd_open);
return line;