Skip to content

Commit

Permalink
Update c_src/sqlite3_nif.c
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Johnston <warmwaffles@gmail.com>
  • Loading branch information
ruslandoga and warmwaffles authored Oct 14, 2024
1 parent f9029d7 commit 6e79342
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion c_src/sqlite3_nif.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,9 @@ exqlite_step(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
ERL_NIF_TERM* cells = NULL;
cells = enif_alloc(sizeof(ERL_NIF_TERM) * column_count);

if (!cells)
if (!cells) {
return make_error_tuple(env, am_out_of_memory);
}

return enif_make_tuple2(
env,
Expand Down

0 comments on commit 6e79342

Please sign in to comment.