Skip to content

Commit

Permalink
db_redis: init allocated structure
Browse files Browse the repository at this point in the history
(cherry picked from commit b8c4d8b)
(cherry picked from commit 071fba8)
  • Loading branch information
miconda committed Sep 15, 2022
1 parent 3864f8b commit 15e5708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/db_redis/redis_dbase.c
Expand Up @@ -1760,7 +1760,7 @@ static int db_redis_perform_delete(const db1_con_t* _h, km_redis_con_t *con, con
db_keys[j] = &tmp->key;
}

db_vals = (db_val_t*) pkg_malloc(all_type_keys_count * sizeof(db_val_t));
db_vals = (db_val_t*) pkg_mallocxz(all_type_keys_count * sizeof(db_val_t));
if (!db_vals) {
LM_ERR("Failed to allocate memory for manual db vals\n");
goto error;
Expand Down

0 comments on commit 15e5708

Please sign in to comment.