From: Hallvard Furuseth Date: Mon, 2 Dec 2002 11:14:13 +0000 (+0000) Subject: Plug memory leak in ldif_parse_line() if ber_strdup( type ) failed && url. X-Git-Tag: NO_SLAP_OP_BLOCKS~744 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cccc8702c652902b56f2a08d0f619f89f975d762;p=openldap Plug memory leak in ldif_parse_line() if ber_strdup( type ) failed && url. --- diff --git a/libraries/libldif/line64.c b/libraries/libldif/line64.c index 9160588e69..160e675b1b 100644 --- a/libraries/libldif/line64.c +++ b/libraries/libldif/line64.c @@ -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 ); }