forked from enlightenment/efl
evas/cserve2: (shutdown) fix double free issue
glibc double free happens when shutting down cserve, while requests are being processed. this is because the entry is being deleted from the hash but the cancel request fails (so it should be deleted again from the hash) Another patch going to fix the double free.
This commit is contained in:
parent
a3b3b5bd8e
commit
681c8cda4c
|
@ -403,9 +403,13 @@ _request_failed(Entry *e, Error_Type type EINA_UNUSED)
|
|||
else
|
||||
continue;
|
||||
|
||||
if (type != CSERVE2_REQUEST_CANCEL)
|
||||
{
|
||||
DBG("removing entry %u from hash", ref->client_entry_id);
|
||||
eina_hash_del_by_key(hash, &(ref->client_entry_id));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static Slave_Request_Funcs _open_funcs = {
|
||||
.msg_create = (Slave_Request_Msg_Create)_open_request_build,
|
||||
|
|
Loading…
Reference in New Issue