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
......@@ -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;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment