From: Michael D. Lowis Date: Tue, 12 Aug 2014 02:50:34 +0000 (-0400) Subject: leak detector fixed X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=5adc8d35c7758281c7f43b729135224a6f3d6e13;p=projs%2Flibcds.git leak detector fixed --- diff --git a/source/mem/mem.c b/source/mem/mem.c index 0d92d31..cebce06 100644 --- a/source/mem/mem.c +++ b/source/mem/mem.c @@ -83,7 +83,7 @@ static void deregister_block(void* p_obj) { block_t* p_prev = NULL; block_t* p_curr = Live_Blocks; - while((NULL != p_curr) && (NULL != p_curr->p_next)) + while(NULL != p_curr) { if (p_obj == p_curr->p_obj) {