[sr-dev] JSON Warning: free function has not been defined for spve

Muhammad Shahzad shaheryarkh at gmail.com
Sat Oct 25 09:02:06 CEST 2014


Hi,

I am using JSON module and when i call json_get_field from kamailio.cfg,

xlog("L_INFO", "JSON string: $var(json)\n");
json_get_field($var(json), "from_number", "$var(from)");

i get following warning,

INFO: <script>: JSON string:
{"from_number":"49XXXXXXXX","to_number":"49XXXXXXXX","domain":"
sip.mydomain.com","from_name":"John","timestamp":1414095386.7094}
WARNING: json [json_mod.c:86]: fixup_get_field_free(): free function has
not been defined for spve

While the code works fine, but this warning just gives me worries that
there may be a memory leak here.

Can you guys confirm if i can ignore this warning when this code goes to
production?

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20141025/1b1372ba/attachment.html>


More information about the sr-dev mailing list