Commit cd0dc29c authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

don't leak file descriptors (coverity)

parent 1c5ac762
......@@ -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;
......
Supports Markdown
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