Change in ...osmo-msc[master]: memleak on cc setup errors

neels gerrit-no-reply at lists.osmocom.org
Thu Aug 29 02:59:11 UTC 2019


neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-msc/+/15319


Change subject: memleak on cc setup errors
......................................................................

memleak on cc setup errors

Change-Id: I3333b90064575b270627721ace7e07d085f4ad43
---
M src/libmsc/gsm_04_08_cc.c
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/19/15319/1

diff --git a/src/libmsc/gsm_04_08_cc.c b/src/libmsc/gsm_04_08_cc.c
index f974e90..a1fea9a 100644
--- a/src/libmsc/gsm_04_08_cc.c
+++ b/src/libmsc/gsm_04_08_cc.c
@@ -598,6 +598,7 @@
 				      GSM48_CC_CAUSE_RESOURCE_UNAVAIL);
 		trans->callref = 0;
 		trans_free(trans);
+		msgb_free(msg);
 		return rc;
 	}
 
@@ -610,6 +611,7 @@
 				      GSM48_CC_CAUSE_RESOURCE_UNAVAIL);
 		trans->callref = 0;
 		trans_free(trans);
+		msgb_free(msg);
 		return rc;
 	}
 	trans->transaction_id = trans_id;

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/15319
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I3333b90064575b270627721ace7e07d085f4ad43
Gerrit-Change-Number: 15319
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190829/cfe23e74/attachment.html>


More information about the gerrit-log mailing list