chan_visdn leaks memory. (Remember: valgrind is your friend.)
diff --git a/libq931/call.c b/libq931/call.c
index 40d8ea4..fa09576 100644
--- a/libq931/call.c
+++ b/libq931/call.c
@@ -360,6 +360,11 @@ #endif
q931_dlc_release(call->dlc);
call->dlc = NULL;
}
+ q931_ies_flush(&call->setup_ies);
+
+ q931_ies_flush(&call->disconnect_cause);
+ q931_ies_flush(&call->saved_cause);
+ q931_ies_flush(&call->release_cause);
q931_intf_del_call(call);
diff --git a/libq931/message.c b/libq931/message.c
index 29a603f..105c951 100644
--- a/libq931/message.c
+++ b/libq931/message.c
@@ -44,6 +44,7 @@ void q931_msg_put(
q931_dlc_put(msg->dlc);
msg->dlc = NULL;
}
+ q931_ies_flush(&msg->ies);
free(msg);
}
--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | [EMAIL PROTECTED]
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
- -
A name is a label, and as soon as there is a label, the ideas disappear
and out comes label-worship and label-bashing, and instead of living by
a theme of ideas, people begin dying for labels... and the last thing
the world needs is another religion.
-- Richard Bach
_______________________________________________
Visdn-hackers mailing list
[email protected]
https://mailman.uli.it/mailman/listinfo/visdn-hackers