Fixed bad free
That's what I get for recycling code I guess.
This commit is contained in:
parent
da18e8211d
commit
b2a024d4b6
1 changed files with 0 additions and 2 deletions
|
@ -25,8 +25,6 @@ long LoadFileToMemory(const char *file_path, unsigned char **file_buffer)
|
|||
{
|
||||
if (fread(*file_buffer, file_size, 1, file) == 1)
|
||||
returned_size = file_size;
|
||||
|
||||
free(file_buffer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue