Free env after use. Fixes #82

This commit is contained in:
Maas-Maarten Zeeman
2022-07-22 14:57:27 +02:00
parent 9cee856ce9
commit 2fb7698466

View File

@@ -333,6 +333,8 @@ update_callback(void *arg, int sqlite_operation_type, char const *sqlite_databas
if(!enif_send(NULL, &conn->update_hook_pid, msg_env, msg)) { if(!enif_send(NULL, &conn->update_hook_pid, msg_env, msg)) {
sqlite3_update_hook(conn->db, NULL, NULL); sqlite3_update_hook(conn->db, NULL, NULL);
} }
enif_free_env(msg_env);
} }