osmith has uploaded this change for review.

View Change

ipa: fix a minor memleak for unknown IPA packets

When the IPA protocol is unknown, the msg isn't freed.

Change-Id: Idb77d3d7dc9db1076b110fb4d17c951b161e77e2
(cherry picked from commit f16fdf58059b2dea8e940c45c11779c7d4634c3f)
---
M src/ipa.c
1 file changed, 1 insertion(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/53/41353/1
diff --git a/src/ipa.c b/src/ipa.c
index 11b8b04..daccb34 100644
--- a/src/ipa.c
+++ b/src/ipa.c
@@ -328,6 +328,7 @@
break;
default:
rc = ss7_asp_rx_unknown(asp, hh->proto, msg);
+ msgb_free(msg);
}

return rc;

To view, visit change 41353. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: osmith/2.1.3
Gerrit-Change-Id: Idb77d3d7dc9db1076b110fb4d17c951b161e77e2
Gerrit-Change-Number: 41353
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>
Gerrit-CC: lynxis lazus <lynxis@fe80.eu>