Commit 3f9df357 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

don't leak file descriptors (coverity)

parent 75964a77
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment