lynxis lazus has submitted this change. (
https://gerrit.osmocom.org/c/libosmocore/+/22291 )
Change subject: osmo-ns-dummy: don't leak primitive messages
......................................................................
osmo-ns-dummy: don't leak primitive messages
The message in the primitive must be freed by the user
Change-Id: I2a7b19f019485c7b1f15baf20b62edc19b663415
---
M utils/osmo-ns-dummy.c
1 file changed, 3 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
laforge: Looks good to me, approved
diff --git a/utils/osmo-ns-dummy.c b/utils/osmo-ns-dummy.c
index a2070ca..58e8152 100644
--- a/utils/osmo-ns-dummy.c
+++ b/utils/osmo-ns-dummy.c
@@ -188,6 +188,9 @@
/* called by the ns layer */
int gprs_ns_prim_cb(struct osmo_prim_hdr *oph, void *ctx)
{
+ if (oph->msg)
+ msgb_free(oph->msg);
+
return 0;
}
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/22291
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I2a7b19f019485c7b1f15baf20b62edc19b663415
Gerrit-Change-Number: 22291
Gerrit-PatchSet: 6
Gerrit-Owner: lynxis lazus <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: lynxis lazus <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged