]> git.sur5r.net Git - openldap/commitdiff
Plug memory leak in ldif_parse_line() if ber_strdup( type ) failed && url.
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 2 Dec 2002 11:14:13 +0000 (11:14 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 2 Dec 2002 11:14:13 +0000 (11:14 +0000)
libraries/libldif/line64.c

index 9160588e69a1c732d3541b0efebc4913c390d93c..160e675b1b549b8521ea070079dcb51ea479a551 100644 (file)
@@ -226,6 +226,8 @@ done:
        if( type == NULL ) {
                ber_pvt_log_printf( LDAP_DEBUG_ANY, ldif_debug,
                        "ldif_parse_line: type malloc failed\n");
+               if( url )
+                       ber_memfree( value );
                ber_memfree( freeme );
                return( -1 );
        }