Review at https://gerrit.osmocom.org/5175
mgcp_test: fix possible double free Change-Id: I2d044382c0bb66e190400e3397449c3f2387359a --- M tests/mgcp/mgcp_test.c 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/75/5175/1 diff --git a/tests/mgcp/mgcp_test.c b/tests/mgcp/mgcp_test.c index ee49eef..330d24d 100644 --- a/tests/mgcp/mgcp_test.c +++ b/tests/mgcp/mgcp_test.c @@ -685,7 +685,8 @@ printf("(response does not contain a connection id)\n"); } - msgb_free(msg); + if (msg) + msgb_free(msg); if (dummy_packets) printf("Dummy packets: %d\n", dummy_packets); -- To view, visit https://gerrit.osmocom.org/5175 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2d044382c0bb66e190400e3397449c3f2387359a Gerrit-PatchSet: 1 Gerrit-Project: osmo-mgw Gerrit-Branch: master Gerrit-Owner: dexter <pma...@sysmocom.de>