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/.
Harald Welte gerrit-no-reply at lists.osmocom.orgHarald Welte has submitted this change and it was merged.
Change subject: sccp_test: sanitize: fix msgb mem leaks
......................................................................
sccp_test: sanitize: fix msgb mem leaks
Change-Id: I6d5ff3e4c053db5a2af9d548250f0307e00317bb
---
M tests/sccp/sccp_test.c
1 file changed, 4 insertions(+), 0 deletions(-)
Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified
diff --git a/tests/sccp/sccp_test.c b/tests/sccp/sccp_test.c
index 6043cff..d6abc5d 100644
--- a/tests/sccp/sccp_test.c
+++ b/tests/sccp/sccp_test.c
@@ -450,6 +450,7 @@
 	}
 
 	write_called = 1;
+	msgb_free(data);
 }
 
 void sccp_c_read(struct sccp_connection *connection, struct msgb *msgb, unsigned int len)
@@ -502,6 +503,7 @@
 	}
 
 	matched = 1;
+	msgb_free(data);
 }
 
 static void test_sccp_system(void)
@@ -981,6 +983,8 @@
 				osmo_hexdump(msg->data, ret));
 		}
 	}
+
+	talloc_free(msg);
 }
 
 static const struct log_info_cat default_categories[] = {
-- 
To view, visit https://gerrit.osmocom.org/4880
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6d5ff3e4c053db5a2af9d548250f0307e00317bb
Gerrit-PatchSet: 2
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder