fix memory leak in stat cache when connection was closed abruptly
This commit is contained in:
parent
3137f19ce5
commit
4f44b332c7
|
@ -121,7 +121,7 @@ void vrequest_reset(vrequest *vr) {
|
|||
|
||||
if (vr->stat_cache_entry) {
|
||||
g_ptr_array_remove_fast(vr->stat_cache_entry->vrequests, vr);
|
||||
vr->stat_cache_entry = NULL;
|
||||
stat_cache_entry_release(vr);
|
||||
}
|
||||
|
||||
memcpy(vr->options, vr->con->srv->option_def_values->data, vr->con->srv->option_def_values->len * sizeof(option_value));
|
||||
|
|
Loading…
Reference in New Issue