Daily patch: gateway

kannel at kannel.org kannel at kannel.org
Fri Sep 4 06:30:07 CEST 2009


File gateway/ChangeLog changed from revision 1.3102 to 1.3103
File gateway/gw/smsc/smpp_pdu.c changed from revision 1.32 to 1.33



Index: gateway/ChangeLog
diff -u gateway/ChangeLog:1.3102 gateway/ChangeLog:1.3103
--- gateway/ChangeLog:1.3102	Wed Sep  2 13:10:49 2009
+++ gateway/ChangeLog	Thu Sep  3 08:02:58 2009
@@ -1,3 +1,6 @@
+2009-09-03 Alexander Malysh <amalysh at kannel.org>
+    * gw/smsc/smpp_pdu.c: fixed memory leak.
+
 2009-09-02 Alexander Malysh <amalysh at kannel.org>
     * doc/userguide/userguide.xml, gw/smsc/smpp_pdu.[ch], gw/smsc/smsc_smpp.c, test/drive_smpp.c,
       test/drive_smpp.conf, test/test_smsc.c: implemented smsc-id config option for smpp-tlv group.
Index: gateway/gw/smsc/smpp_pdu.c
diff -u gateway/gw/smsc/smpp_pdu.c:1.32 gateway/gw/smsc/smpp_pdu.c:1.33
--- gateway/gw/smsc/smpp_pdu.c:1.32	Wed Sep  2 13:10:50 2009
+++ gateway/gw/smsc/smpp_pdu.c	Thu Sep  3 08:02:58 2009
@@ -235,6 +235,7 @@
             tmp = octstr_format("%ld", tlv->tag);
             if (!dict_put_once(tmp_dict, tmp, tlv)) {
                 error(0, "SMPP: Double TLV tag %s found.", octstr_get_cstr(tmp));
+                gwlist_destroy(l2, octstr_destroy_item);
                 octstr_destroy(tmp);
                 octstr_destroy(smsc_id);
                 goto failed;



More information about the devel-reports mailing list