summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-01-14 03:21:50 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-01-14 03:21:50 +0000
commit158e2850cdcc14f23ea8a17e7a75e91eb83e53c8 (patch)
treeafc5643e785870fdb9d1d9a991dca8e61586770b
parent3564e97d76d5c77f42d4f82d46e088162634ba69 (diff)
and also avoid leak while avoiding
SVN revision: 56088
-rw-r--r--src/lib/eina_mempool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eina_mempool.c b/src/lib/eina_mempool.c
index a44ccb7..d71a38d 100644
--- a/src/lib/eina_mempool.c
+++ b/src/lib/eina_mempool.c
@@ -66,7 +66,7 @@ _new_va(const char *name,
66 va_list args) 66 va_list args)
67{ 67{
68 Eina_Mempool_Backend *be; 68 Eina_Mempool_Backend *be;
69 Eina_Mempool *mp; 69 Eina_Mempool *mp = NULL;
70 70
71 Eina_Error err = EINA_ERROR_NOT_MEMPOOL_MODULE; 71 Eina_Error err = EINA_ERROR_NOT_MEMPOOL_MODULE;
72 72
@@ -88,6 +88,7 @@ _new_va(const char *name,
88 88
89on_error: 89on_error:
90 eina_error_set(err); 90 eina_error_set(err);
91 if (mp) free(mp);
91 return NULL; 92 return NULL;
92} 93}
93 94