[sr-dev] git:master:fca170fe: ndb_redis: Accidentally tried to free a reply from shmem, which is still in pkgmem

Carsten Bock carsten at ng-voice.com
Tue Apr 4 16:39:11 CEST 2017


Module: kamailio
Branch: master
Commit: fca170fec9e16b37dd1bbec5b9734a77e0b09403
URL: https://github.com/kamailio/kamailio/commit/fca170fec9e16b37dd1bbec5b9734a77e0b09403

Author: Carsten Bock <carsten at ng-voice.com>
Committer: Carsten Bock <carsten at 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/fca170fec9e16b37dd1bbec5b9734a77e0b09403.diff
Patch: https://github.com/kamailio/kamailio/commit/fca170fec9e16b37dd1bbec5b9734a77e0b09403.patch

---

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;




More information about the sr-dev mailing list