and also avoid leak while avoiding

SVN revision: 56088
This commit is contained in:
Mike Blumenkrantz 2011-01-14 03:21:50 +00:00
parent 3685b112ee
commit 01f1362c4e
1 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,7 @@ _new_va(const char *name,
va_list args) va_list args)
{ {
Eina_Mempool_Backend *be; Eina_Mempool_Backend *be;
Eina_Mempool *mp; Eina_Mempool *mp = NULL;
Eina_Error err = EINA_ERROR_NOT_MEMPOOL_MODULE; Eina_Error err = EINA_ERROR_NOT_MEMPOOL_MODULE;
@ -88,6 +88,7 @@ _new_va(const char *name,
on_error: on_error:
eina_error_set(err); eina_error_set(err);
if (mp) free(mp);
return NULL; return NULL;
} }