summaryrefslogtreecommitdiff
path: root/lib/xref.c
diff options
context:
space:
mode:
authorMark Stapp <mjs.ietf@gmail.com>2021-08-09 11:57:17 -0400
committermergify-bot <noreply@mergify.io>2021-10-07 13:22:20 +0000
commit6b428a3db6fa72f84066de6b5f47ed7d4bb4242c (patch)
tree6a485eefbc1490915fff46789a02e064e954578f /lib/xref.c
parent66700e0c36fbe36d8313e6916e85763a15813f3d (diff)
lib: avoid double-free in zmq wrapper callbacks
There were paths where the zmq wrapper lib could call user callbacks that would free the internal context struct, but the context was then used in the lib code. Use a boolean to avoid freeing the context within an application callback. Restore logic that frees the context within the 'cancel' api. Signed-off-by: Mark Stapp <mjs.ietf@gmail.com> (cherry picked from commit 8fd5502b0c2e628b875fdaf1a0ca467f8ba07ce4)
Diffstat (limited to 'lib/xref.c')
0 files changed, 0 insertions, 0 deletions