From a72b876cf8f7c01ab2d3808a168ef16620498298 Mon Sep 17 00:00:00 2001 From: David Timber Date: Sun, 25 Jul 2021 18:40:16 +1000 Subject: Impl htbt M2M binary update and bug fixes ... * Change signature of tmpfile() cb * Add PRNE_DATA_KEY_VER_MAT * Add prne_try_alloc_iobuf() * Fix htbt: don't run cncp when both resolv and cnc_txtrec are not passed * Impl upbin cb on proone-bne * Fix proone-htbtclient: content of status frame was discarded * htbt is now responsible for setting FD_CLOEXEC on temp files * Changes in mttools for valgrind run * Add proone-test_iobuf * Fix event leak in resolv * src/test-resolv.sh: run proone-resolv on valgrind * Add prne_cmp_uuid_asc() and prne_cmp_uuid_desc() for version matrix * --- src/resolv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/resolv.c') diff --git a/src/resolv.c b/src/resolv.c index b7f00e7..40e789a 100644 --- a/src/resolv.c +++ b/src/resolv.c @@ -506,10 +506,10 @@ static bool resolv_ensure_act_dns_fd (prne_resolv_t *ctx) { } END: - pth_event_free(ev, FALSE); prne_close(pfs[0].fd); prne_close(pfs[1].fd); if (!ret && err_sleep != NULL) { + pth_event_free(ev, FALSE); ev = pth_event( PTH_EVENT_TIME, pth_timeout(err_sleep->tv_sec, err_sleep->tv_nsec / 1000)); @@ -518,6 +518,7 @@ END: pth_wait(ev); } while (pth_event_status(ev) == PTH_STATUS_PENDING); } + pth_event_free(ev, FALSE); return ret; } -- cgit