Skip to content

Commit

Permalink
Fix reference count
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Sep 9, 2024
1 parent 75f0300 commit bd7fd90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions binding.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,10 +773,10 @@ rocksdb_native_read (js_env_t *env, js_callback_info_t *info) {
err = js_get_array_length(env, argv[2], &len);
assert(err == 0);

err = js_create_reference(env, argv[4], 0, &batch->ctx);
err = js_create_reference(env, argv[4], 1, &batch->ctx);
assert(err == 0);

err = js_create_reference(env, argv[5], 0, &batch->on_status);
err = js_create_reference(env, argv[5], 1, &batch->on_status);
assert(err == 0);

for (uint32_t i = 0; i < len; i++) {
Expand Down

0 comments on commit bd7fd90

Please sign in to comment.