Module: kamailio
Branch: master
Commit: fca170fec9e16b37dd1bbec5b9734a77e0b09403
URL:
https://github.com/kamailio/kamailio/commit/fca170fec9e16b37dd1bbec5b9734a7…
Author: Carsten Bock <carsten(a)ng-voice.com>
Committer: Carsten Bock <carsten(a)ng-voice.com>
Date: 2017-04-04T16:38:58+02:00
ndb_redis: Accidentally tried to free a reply from shmem, which is still in pkgmem
---
Modified: src/modules/ndb_redis/redis_client.c
---
Diff:
https://github.com/kamailio/kamailio/commit/fca170fec9e16b37dd1bbec5b9734a7…
Patch:
https://github.com/kamailio/kamailio/commit/fca170fec9e16b37dd1bbec5b9734a7…
---
diff --git a/src/modules/ndb_redis/redis_client.c b/src/modules/ndb_redis/redis_client.c
index 3310f8d..407967a 100644
--- a/src/modules/ndb_redis/redis_client.c
+++ b/src/modules/ndb_redis/redis_client.c
@@ -181,7 +181,7 @@ int redisc_destroy(void)
freeReplyObject(rpl->rplRedis);
if(rpl->rname.s != NULL)
- shm_free(rpl->rname.s);
+ pkg_free(rpl->rname.s);
pkg_free(rpl);
rpl = next_rpl;