Skip to content
Snippets Groups Projects
Commit cd0dc29c authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

don't leak file descriptors (coverity)

parent 1c5ac762
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment