mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
don't leak file descriptors (coverity)
This commit is contained in:
parent
75964a771f
commit
3f9df357e8
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue