mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-31 19:09:42 -05:00
Fix rev 1.270: free def_urlpre correctly. Also free urlpre.
This commit is contained in:
parent
a55d333107
commit
e0adc1aa69
1 changed files with 4 additions and 3 deletions
|
|
@ -1350,8 +1350,10 @@ getNextPage:
|
|||
if ( derefval.bv_val != NULL ) {
|
||||
ldap_memfree( derefval.bv_val );
|
||||
}
|
||||
if ( def_urlpre != NULL ) {
|
||||
ber_memfree( def_urlpre );
|
||||
if ( urlpre != NULL ) {
|
||||
if ( def_urlpre != urlpre )
|
||||
free( def_urlpre );
|
||||
free( urlpre );
|
||||
}
|
||||
|
||||
if ( c ) {
|
||||
|
|
@ -1906,4 +1908,3 @@ static int print_result(
|
|||
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue