close file on error

SVN revision: 56103
This commit is contained in:
Mike Blumenkrantz 2011-01-14 06:50:32 +00:00
parent b2e46be157
commit 64fcf02198
1 changed files with 2 additions and 0 deletions

View File

@ -176,6 +176,8 @@ pmaps_buffer_open(Pmaps_Buffer *b, const char *filename, int *error)
if (len < 3)
{
*error = EVAS_LOAD_ERROR_CORRUPT_FILE;
fclose(b->file);
b->file = NULL;
return EINA_FALSE;
}