[PATCH]

"Dariusz Markowicz" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <01e101c2417e$28b1c960$d4e34cd5@oem>
Hi all,

here's a small patch for smsc_cimd2.c
It's remove memory leak warning on exit.
smsc->sender_prefix is allocated in cimd2_open()

Dariusz Markowicz


RCS file: /home/cvs/gateway/gw/smsc/smsc_cimd2.c,v
retrieving revision 1.1
diff -u -r1.1 smsc_cimd2.c
--- gw/smsc/smsc_cimd2.c        8 Aug 2002 17:44:38 -0000       1.1
+++ gw/smsc/smsc_cimd2.c        11 Aug 2002 21:09:31 -0000
@@ -1797,6 +1797,7 @@
     octstr_destroy(smsc->cimd2_username);
     octstr_destroy(smsc->cimd2_password);
     octstr_destroy(smsc->cimd2_inbuffer);
+    octstr_destroy(smsc->sender_prefix);

     discarded = list_len(smsc->cimd2_received);
     list_destroy(smsc->cimd2_received, msg_destroy_item);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.