Skip to content

Commit

Permalink
src: avoid double free of QCbTimeoutStor
Browse files Browse the repository at this point in the history
The stor is already deleted in `q_cb_timeout_cb_()`.

PR-URL: #88
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
  • Loading branch information
santigimeno committed Feb 23, 2024
1 parent f7b4b61 commit f7e61f6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/nsolid/nsolid_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1409,8 +1409,6 @@ void EnvList::process_callbacks_(ns_async*, EnvList* envlist) {
// than the timeout time, then call the callback immediately.
if (timeout < 0) {
to_stor->timer_cb(nullptr, to_stor);
delete to_stor;
to_stor = nullptr;
continue;
}
// Here we create the timeout and set it using the delta in time as a
Expand Down

0 comments on commit f7e61f6

Please sign in to comment.