Skip to content

Commit 85985f4

Browse files
committed
Switched malloc to caml_stat_alloc
1 parent 639116d commit 85985f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sqlite3_stubs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ typedef struct user_exception { value exn; } user_exception;
115115

116116
static inline void create_user_exception(value v_exn)
117117
{
118-
user_exception *user_exn = malloc(sizeof(user_exception));
118+
user_exception *user_exn = caml_stat_alloc(sizeof(user_exception));
119119
user_exn->exn = v_exn;
120120
caml_register_global_root(&user_exn->exn);
121121
pthread_setspecific(user_exception_key, user_exn);

0 commit comments

Comments
 (0)