aboutsummaryrefslogtreecommitdiffstats
path: root/c_src/nif_helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'c_src/nif_helpers.c')
-rw-r--r--c_src/nif_helpers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/c_src/nif_helpers.c b/c_src/nif_helpers.c
index 820fef8..f655497 100644
--- a/c_src/nif_helpers.c
+++ b/c_src/nif_helpers.c
@@ -152,6 +152,8 @@ void* nif_main_thread(void* obj)
while (nif_thread_receive(st, &msg))
nif_thread_handle(env, st, msg);
+ enif_free_env(env);
+
return NULL;
}