Skip to content

Commit

Permalink
sql_cacher: fix SQL result leak when insert_in_cachedb fails
Browse files Browse the repository at this point in the history
  • Loading branch information
benceszigeti committed Jan 23, 2024
1 parent 10b6396 commit d373ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sql_cacher/sql_cacher.c
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ static int load_entire_table(cache_entry_t *c_entry, db_handlers_t *db_hdls,
if (insert_in_cachedb(c_entry, db_hdls, values ,values + 1,
reload_vers, ROW_N(row) - 1) < 0) {
lock_stop_write(db_hdls->c_entry->ref_lock);
return -1;
goto error;
}
loaded_rec++;
}
Expand Down

0 comments on commit d373ab6

Please sign in to comment.