From: John Darrington Date: Fri, 30 Jul 2010 21:41:01 +0000 (+0200) Subject: Deallocate memory from pool using the correct function X-Git-Tag: v0.7.6~313 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c48de1ac439a57cdead8114f8ccb9b9ba1cee001;p=pspp-builds.git Deallocate memory from pool using the correct function Memory allocated using pool_alloc was being deallocated using the standard free function instead of pool_free. This change fixes that. Thanks to Andras Muranyi for reporting this problem. --- diff --git a/src/libpspp/i18n.c b/src/libpspp/i18n.c index 0e9b2b1b..02aefb5b 100644 --- a/src/libpspp/i18n.c +++ b/src/libpspp/i18n.c @@ -177,7 +177,7 @@ recode_string_pool (const char *to, const char *from, } /* Fall through */ case E2BIG: - free (outbuf); + pool_free (pool, outbuf); outbufferlength <<= 1; outbuf = pool_malloc (pool, outbufferlength); op = outbuf;