[PATCH] osmo-mgw[master]: mgcp_test: test_packet_error_detection: sanitize: free all c...

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Sat Nov 18 20:30:56 UTC 2017


Review at  https://gerrit.osmocom.org/4918

mgcp_test: test_packet_error_detection: sanitize: free all conns

Don't leave any memory leaks a sanitizer build will complain about.

Change-Id: I6823653d5efcebaed40471123d21a9321cf633fd
---
M tests/mgcp/mgcp_test.c
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/18/4918/1

diff --git a/tests/mgcp/mgcp_test.c b/tests/mgcp/mgcp_test.c
index e14b7ee..3dee509 100644
--- a/tests/mgcp/mgcp_test.c
+++ b/tests/mgcp/mgcp_test.c
@@ -1083,6 +1083,7 @@
 	}
 
 	force_monotonic_time_us = -1;
+	mgcp_conn_free_all(&endp);
 }
 
 static void test_multilple_codec(void)

-- 
To view, visit https://gerrit.osmocom.org/4918
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6823653d5efcebaed40471123d21a9321cf633fd
Gerrit-PatchSet: 1
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list