removed freeing of the ptr
This commit is contained in:
@@ -50,7 +50,6 @@ static buffer_s read_file(const char *path)
|
|||||||
|
|
||||||
fclose(f);
|
fclose(f);
|
||||||
buffer_s const b = { ptr, size };
|
buffer_s const b = { ptr, size };
|
||||||
free(ptr);
|
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user