Memory leak in referral code (ITS#596)

Apply patch from Steve Sonntag <vtag@novell.com>
This commit is contained in:
Kurt Zeilenga 2000-06-16 20:00:21 +00:00
parent 0c484042a0
commit ae61f3dcaf

View file

@ -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;
}
}
}
}