Module: kamailio
Branch: master
Commit: 027c2b30b39a7596c8630c06995ddc49bb42d789
URL:
https://github.com/kamailio/kamailio/commit/027c2b30b39a7596c8630c06995ddc4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-08-23T10:54:52+02:00
db_redis: free db_keys in case of failure
---
Modified: src/modules/db_redis/redis_dbase.c
---
Diff:
https://github.com/kamailio/kamailio/commit/027c2b30b39a7596c8630c06995ddc4…
Patch:
https://github.com/kamailio/kamailio/commit/027c2b30b39a7596c8630c06995ddc4…
---
diff --git a/src/modules/db_redis/redis_dbase.c b/src/modules/db_redis/redis_dbase.c
index c53a1593aa6..ff41aa45282 100644
--- a/src/modules/db_redis/redis_dbase.c
+++ b/src/modules/db_redis/redis_dbase.c
@@ -2584,6 +2584,8 @@ static int db_redis_perform_update(const db1_con_t *_h,
km_redis_con_t *con,
LM_ERR("failed to perform the update\n");
if(reply)
db_redis_free_reply(&reply);
+ if(db_keys)
+ pkg_free(db_keys);
db_redis_key_free(&query_v);
db_redis_key_free(&all_type_keys);
db_redis_key_free(&type_keys);