about summary refs log tree commit diff stats
path: root/src/box64context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/box64context.c')
-rwxr-xr-xsrc/box64context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/box64context.c b/src/box64context.c
index a70b40d0..467accfa 100755
--- a/src/box64context.c
+++ b/src/box64context.c
@@ -302,7 +302,8 @@ void FreeBox64Context(box64context_t** context)
     if(ctx->tlsdata)
         box_free(ctx->tlsdata);
 
-    free_neededlib(&ctx->neededlibs);
+    free_neededlib(ctx->neededlibs);
+    ctx->neededlibs = NULL;
 
     if(ctx->emu_sig)
         FreeX64Emu(&ctx->emu_sig);