From cccc8702c652902b56f2a08d0f619f89f975d762 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 2 Dec 2002 11:14:13 +0000 Subject: [PATCH] Plug memory leak in ldif_parse_line() if ber_strdup( type ) failed && url. --- libraries/libldif/line64.c | 2 ++ 1 file changed, 2 insertions(+) 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 ); } -- 2.39.5