[PATCH] nailed another smsc_at2.c memory leak.

"Oded Arbel" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Patch attached. pretty straight forward.
hope I've seen the last of 'em :-)

TIA

Oded Arbel
m-Wise Inc.
[email protected]

--
I learned that it is the weak who are cruel,
and that gentleness is to be expected only from the strong.
     --Leo Rosten 



 <<smsc_at2.patch>>
smsc_at2.patch (application/octet-stream, 289 B)
--- gw/smsc_at2.c.orig	Wed Feb 20 14:16:11 2002
+++ gw/smsc_at2.c	Wed Feb 20 14:16:40 2002
@@ -662,6 +662,7 @@
     privdata->lines = octstr_create("");
     while(time(&cur_time) <= end_time)
     {
+	O_DESTROY(line);
     	line = at2_read_line(privdata, gt_flag);
     	if(line)
     	{
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.