Skip to content
Snippets Groups Projects
Commit 03b41edd authored by dmitriy.gerasimov's avatar dmitriy.gerasimov
Browse files

Merge branch 'feature-2792' into 'master'

fixed delete freed memory

See merge request !19
parents 6b1f0c34 702703dc
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 ...@@ -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) { if (l_arg.q > 0) {
l_count_out = l_arg.n - l_arg.q; l_count_out = l_arg.n - l_arg.q;
void *tmp = DAP_REALLOC(l_arg.o, l_count_out * sizeof(dap_store_obj_t)); 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!"); log_it(L_CRITICAL, "Couldn't re-allocate memory for portion of store objects!");
DAP_DELETE(l_arg.o); DAP_DELETE(l_arg.o);
return NULL; 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