network/queue: do not increase reference counter when remove request is not queued

Fixes a bug introduced by ef45f5c8d0.
Fixes #35164.
This commit is contained in:
Yu Watanabe
2024-11-27 19:24:50 +00:00
committed by Luca Boccassi
parent 62f3e2f84a
commit 1d96f18bd8
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ int remove_request_add(
_r = remove_request_add(manager, link, _data, \
(mfree_func_t) name##_unref, \
nl, m, handler); \
if (_r >= 0) \
if (_r > 0) \
name##_ref(_data); \
_r; \
})