summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc/gsm_04_11.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-11-08 20:11:05 +0100
committerHarald Welte <laforge@gnumonks.org>2012-11-16 22:00:09 +0100
commite94db496984b072e8bddacd93e3bd25f4e67dadf (patch)
tree45f48907c858d389ebd0e6350a139600081a3626 /openbsc/src/libmsc/gsm_04_11.c
parentd4bdee79e96906323811ea5832e402855985df88 (diff)
SMPP: Introduce ESME reference coounting
In case a ESME disappears after SUBMIT-SM but before the MT-SMS is delivered (transaction mode), we have to make sure the esme structure still exists.
Diffstat (limited to 'openbsc/src/libmsc/gsm_04_11.c')
-rw-r--r--openbsc/src/libmsc/gsm_04_11.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/libmsc/gsm_04_11.c b/openbsc/src/libmsc/gsm_04_11.c
index e6956484f..2ed31e37e 100644
--- a/openbsc/src/libmsc/gsm_04_11.c
+++ b/openbsc/src/libmsc/gsm_04_11.c
@@ -117,6 +117,8 @@ void sms_free(struct gsm_sms *sms)
subscr_put(sms->sender);
if (sms->receiver)
subscr_put(sms->receiver);
+ if (sms->smpp.esme)
+ smpp_esme_put(sms->smpp.esme);
talloc_free(sms);
}