X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Fliblutil%2Fldif.c;h=bb5ab7e1a1da65cce3f9708ab4d44417f143571b;hb=10595e7e5877b224077ae388913f96dbf26e9138;hp=f3badef0b4721c8f06ecda1fe1994d487f6e13f8;hpb=c02302a6133be3de7d3f009f940b4e4f81d31bc8;p=openldap diff --git a/libraries/liblutil/ldif.c b/libraries/liblutil/ldif.c index f3badef0b4..bb5ab7e1a1 100644 --- a/libraries/liblutil/ldif.c +++ b/libraries/liblutil/ldif.c @@ -866,6 +866,7 @@ ldif_read_record( if ( fp2 ) { LDIFFP *lnew = ber_memalloc( sizeof( LDIFFP )); if ( lnew == NULL ) { + fclose( fp2 ); return 0; } lnew->prev = lfp->prev;