eina: Eina_File - don't leak memory when file is not found.

This commit is contained in:
Cedric Bail 2014-01-05 10:57:39 +09:00
parent 3ddb62d8d3
commit e450a8fec3
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}