Article View: news.software.readers
Article #70721Re: [slrn] nntplib: nntp_allocate_nntp
From: Thomas Schultz
Date: Thu, 18 Jan 2001 14:30
Date: Thu, 18 Jan 2001 14:30
20 lines
1841 bytes
1841 bytes
On 18 January 2001 at 11:38 GMT, Jurriaan wrote: > Why is > > static NNTP_Type nn; > > used to allocate space for a server-object? [...] I guess this was just the easiest way to do it (given that the code was not designed with multiple server / thread support in mind). If you replace it with a call to slrn_malloc(), you also need to call slrn_free() in _nntp_deallocate_nntp() and make sure that it is called exactly once for each call to nntp_allocate_nntp(), or you might run into problems with memory leaks or segfaults. -- Thomas Schultz <tststs@gmx.de> * Recent news from http://slrn.sourceforge.net/ -> [2000-12-21] slrn 0.9.6.3pl3 released -> [2000-10-22] Matthias Friedrich joins the team -> [2000-09-27] Initial release of the slrn reference manual
Technical Details
Message-ID:
<slrn96dvgl.1c3.tststs@starflower.tststs.ddns.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out.usenetserver.com!news.tele.dk!134.222.94.5!npeer.kpnqwest.net!nmaster.kpnqwest.net!blackbush.xlink.net!newsfeed01.sul.t-online.de!t-online.de!do.de.uu.net!innmaster.de.uu.net!news.cityweb.de!tststs.ddns.org!not-for-mailReferences:
<slrn96d3p1.933.no_spam_here@middle.of.nowhere>Show Full Headers
Complete Article Headers
Message-ID: <slrn96dvgl.1c3.tststs@starflower.tststs.ddns.org> Subject: Re: [slrn] nntplib: nntp_allocate_nntp Date: Thu, 18 Jan 2001 14:30:45 +0000 From: tststs@gmx.de (Thomas Schultz) References: <slrn96d3p1.933.no_spam_here@middle.of.nowhere> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out.usenetserver.com!news.tele.dk!134.222.94.5!npeer.kpnqwest.net!nmaster.kpnqwest.net!blackbush.xlink.net!newsfeed01.sul.t-online.de!t-online.de!do.de.uu.net!innmaster.de.uu.net!news.cityweb.de!tststs.ddns.org!not-for-mail Newsgroups: news.software.readers Organization: Pinguin online. Lines: 19 NNTP-Posting-Host: 149.225.48.115 NNTP-Posting-Date: 18 Jan 2001 14:31:47 GMT X-Complaints-To: abuse@cityweb.de X-Server-Date: 18 Jan 2001 14:28:43 GMT User-Agent: slrn/0.9.6.3pl4 (Linux)