From: Howard Chu Date: Fri, 31 Mar 2006 20:20:53 +0000 (+0000) Subject: plug leaks X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~79 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0b72c15e52c1789d384bdc90935fa7d16f0600ba;p=openldap plug leaks --- 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 {