Commit 590ce1d3 authored by Simon Morlat's avatar Simon Morlat
Browse files

add better logs in case of double free of objects

parent 1860fc21
......@@ -70,6 +70,7 @@ void belle_sip_object_unref(void *ptr){
if (obj->ref==-1) {
belle_sip_error("Object [%p] freed twice !",obj);
if (obj->vptr && obj->vptr->type_name) belle_sip_error("Object type might be [%s]",obj->vptr->type_name);
if (obj->name) belle_sip_error("Object name might be [%s]",obj->name);
belle_sip_fatal("Fatal object error encountered, aborting.");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment