Skip to content

Commit

Permalink
Merge pull request #3289 from purecloudlabs/hotfix/sql-cacher_load_en…
Browse files Browse the repository at this point in the history
…tire_table_memory_leak

sql_cacher: fix SQL result leak when insert_in_cachedb fails
  • Loading branch information
bogdan-iancu committed Jan 23, 2024
2 parents d3cc59b + d373ab6 commit 3bef4af
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 3bef4af

Please sign in to comment.