forked from enlightenment/efl
eina: Eina_File - don't leak memory when file is not found.
This commit is contained in:
parent
3ddb62d8d3
commit
e450a8fec3
|
@ -857,6 +857,9 @@ eina_file_open(const char *path, Eina_Bool shared)
|
|||
close_handle:
|
||||
CloseHandle(handle);
|
||||
|
||||
ERR("Could not open file [%s].", filename);
|
||||
free(filename);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue