]> git.sur5r.net Git - openldap/commitdiff
plug leaks
authorHoward Chu <hyc@openldap.org>
Fri, 31 Mar 2006 20:20:53 +0000 (20:20 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 31 Mar 2006 20:20:53 +0000 (20:20 +0000)
libraries/liblunicode/ucstr.c

index 21bd0b41935187e7d1ac998e475b89a01bb75387..d964649addb5bb79d5ff4c40e38e12bd42b3424b 100644 (file)
@@ -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 {