osmith has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmo-sigtran/+/41353?usp=email )


Change subject: ipa: fix a minor memleak for unknown IPA packets
......................................................................

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 https://gerrit.osmocom.org/c/libosmo-sigtran/+/41353?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

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 <[email protected]>
Gerrit-CC: lynxis lazus <[email protected]>

Reply via email to