From: raster Date: Thu, 28 Oct 2010 03:46:52 +0000 (+0000) Subject: dont free null ptrs eh? X-Git-Tag: 2.0_alpha~70^2~304 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef13e32b5311ae5acb6fb2962d43f888d4a75478;p=framework%2Fuifw%2Feina.git dont free null ptrs eh? git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@53944 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/modules/mp/chained_pool/eina_chained_mempool.c b/src/modules/mp/chained_pool/eina_chained_mempool.c index c93d704..a13e605 100644 --- a/src/modules/mp/chained_pool/eina_chained_mempool.c +++ b/src/modules/mp/chained_pool/eina_chained_mempool.c @@ -282,7 +282,10 @@ eina_chained_mempool_free(void *data, void *ptr) } #ifndef NVALGRIND - VALGRIND_MEMPOOL_FREE(pool, ptr); + if (ptr) + { + VALGRIND_MEMPOOL_FREE(pool, ptr); + } #endif #ifdef EFL_HAVE_THREADS