]> git.sur5r.net Git - openldap/blobdiff - libraries/liblunicode/ucstr.c
happy new year
[openldap] / libraries / liblunicode / ucstr.c
index 0d820977efbb81ae3968e6947f32f9de7cbc3072..9246dc8edbfbe2273c745e9591a37b9beb2a7005 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2004 The OpenLDAP Foundation.
+ * Copyright 1998-2007 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -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 {