mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 15:10:22 -05:00
Memory leak in referral code (ITS#596)
Apply patch from Steve Sonntag <vtag@novell.com>
This commit is contained in:
parent
0c484042a0
commit
ae61f3dcaf
1 changed files with 9 additions and 0 deletions
|
|
@ -464,6 +464,15 @@ try_read1msg(
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if( lr->lr_res_matched != NULL ) {
|
||||
LDAP_FREE( lr->lr_res_matched );
|
||||
lr->lr_res_matched = NULL;
|
||||
}
|
||||
if( lr->lr_res_error != NULL ) {
|
||||
LDAP_FREE( lr->lr_res_error );
|
||||
lr->lr_res_error = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue