From 0b72c15e52c1789d384bdc90935fa7d16f0600ba Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 31 Mar 2006 20:20:53 +0000 Subject: [PATCH] plug leaks --- libraries/liblunicode/ucstr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/liblunicode/ucstr.c b/libraries/liblunicode/ucstr.c index 21bd0b4193..d964649add 100644 --- a/libraries/liblunicode/ucstr.c +++ b/libraries/liblunicode/ucstr.c @@ -401,6 +401,7 @@ int UTF8bvnormcmp( l1 = ulen; ucs = malloc( l2 * sizeof(*ucs) ); if ( ucs == NULL ) { + free( ucsout1 ); return l1 > l2 ? 1 : -1; /* what to do??? */ } } else { -- 2.39.5