We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 639116d commit 85985f4Copy full SHA for 85985f4
lib/sqlite3_stubs.c
@@ -115,7 +115,7 @@ typedef struct user_exception { value exn; } user_exception;
115
116
static inline void create_user_exception(value v_exn)
117
{
118
- user_exception *user_exn = malloc(sizeof(user_exception));
+ user_exception *user_exn = caml_stat_alloc(sizeof(user_exception));
119
user_exn->exn = v_exn;
120
caml_register_global_root(&user_exn->exn);
121
pthread_setspecific(user_exception_key, user_exn);
0 commit comments