Description

when call detailed_ipv4_type function, pkg memory leak.

detailed_ipv4_type($si,"$var(iptype)");

Troubleshooting

Reproduction

just call detailed_ipv4_type function.

Debugging Data

ALERT: qm_sums: qm_sums():  count= 48161 size=   1789640 bytes from core: core/rvalue.c: rval_get_str(1293)

Possible Solutions

ip address string not free in rval_get_str() function. s->s=pkg_malloc(tmp.len+1/* 0 term */);
need call pkg_free() free memory.

Additional Information

test 3 version.

kamailio 5.5.4
kamailio 5.4.8
kamailio 5.3.9
buster 10
ubuntu 20.04


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/issues/3159@github.com>