Skip to content
Snippets Groups Projects
Commit 702703dc authored by alexander.lysikov's avatar alexander.lysikov
Browse files

fixed delete freed memory

parent 6b1f0c34
No related branches found
No related tags found
1 merge request!19fixed delete freed memory
......@@ -402,7 +402,7 @@ dap_store_obj_t* dap_db_driver_cdb_read_cond_store_obj(const char *a_group, uint
if (l_arg.q > 0) {
l_count_out = l_arg.n - l_arg.q;
void *tmp = DAP_REALLOC(l_arg.o, l_count_out * sizeof(dap_store_obj_t));
if (!tmp) {
if (!tmp && l_count_out) {
log_it(L_CRITICAL, "Couldn't re-allocate memory for portion of store objects!");
DAP_DELETE(l_arg.o);
return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment