RE: smsbox crashed (stable 1.2.0)
"Kaido Karner" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
> -----Original Message----- > From: [email protected] > [mailto:[email protected]]On Behalf Of Cipher Strength > Sent: Saturday, July 20, 2002 11:46 AM > To: [email protected]; [email protected] > Subject: Re: smsbox crashed (stable 1.2.0) > > > NO body yet replied to this. the following should fix the problem .. however, there may be more memory leaks, so could somebody (who wrote it?) please take a look at that. will somebody care to take time to commit this and my previous bugfix-patch into cvs? kaido diff -ur gateway-1.2.0/gw/smsbox.c gateway-patched/gw/smsbox.c --- gateway-1.2.0/gw/smsbox.c Wed Jun 12 00:35:45 2002 +++ gateway-patched/gw/smsbox.c Mon Jul 22 11:57:00 2002 @@ -1786,7 +1786,7 @@ } } msg_destroy(msg); - list_destroy(receiver, octstr_destroy_item); + list_destroy(receiver, NULL); list_destroy(allowed, octstr_destroy_item); /* have all receivers been denied by list rules?! */ @@ -1811,6 +1811,7 @@ octstr_format_append(returnerror, " Denied receivers are:"); while ((receiv = list_extract_first(denied)) != NULL) { octstr_format_append(returnerror, " %s", octstr_get_cstr(receiv)); + octstr_destroy (receiv); } } list_destroy(denied, octstr_destroy_item);