Skip to content
Snippets Groups Projects
Commit e0adc1aa authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Fix rev 1.270: free def_urlpre correctly. Also free urlpre.

parent a55d3331
Branches
Tags
No related merge requests found
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment