[PATCH] mem leak bb_smscconn

Nisan Bloch <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi

another small mem leak

--- cvs/gw/bb_smscconn.c    Thu Nov 28 13:22:30 2002
+++ cvsup/gw/bb_smscconn.c       Mon Dec  2 23:36:32 2002
@@ -423,7 +423,7 @@
  {
      CfgGroup *grp;
      SMSCConn *conn;
-    Octstr *smscid;
+    Octstr *smscid = NULL;
      int i;

      /* find the specific smsc via id */
@@ -466,6 +466,7 @@
      list_append(smsc_list, conn);

      smscconn_start(conn);
+   octstr_destroy(smscid);

      if (router_thread >= 0)
          gwthread_wakeup(router_thread);


Nisan
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.