From dc8cebf77402121ff60fac31663ffdb620907b3f Mon Sep 17 00:00:00 2001 From: Christian Giese Date: Thu, 19 May 2022 15:18:41 +0000 Subject: [PATCH] fix BBL context delete order --- code/bngblaster/src/bbl_ctx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/bngblaster/src/bbl_ctx.c b/code/bngblaster/src/bbl_ctx.c index 77bfd314..40c3b3ec 100644 --- a/code/bngblaster/src/bbl_ctx.c +++ b/code/bngblaster/src/bbl_ctx.c @@ -102,6 +102,8 @@ bbl_ctx_del (bbl_ctx_s *ctx) { void *p = NULL; uint32_t i; + timer_flush_root(&ctx->timer_root); + /* Free access configuration memory. */ while(access_config) { p = access_config; @@ -125,7 +127,6 @@ bbl_ctx_del (bbl_ctx_s *ctx) { } pcapng_free(ctx); - timer_flush_root(&ctx->timer_root); free(ctx); return; } \ No newline at end of file