<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <atom:link href="https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=4823" rel="self" type="application/rss+xml" />
  <title>SmaugMuds - Topic: Memory leak with do_hset and smash_tilde_copy?</title>
  <link>https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=4823</link>
  <description>The largest Smaug community resource site. - </description>
  <language>en</language>
  <generator>SmaugMuds</generator>
  <ttl>60</ttl>
  <item>
   <title>Memory leak with do_hset and smash_tilde_copy?</title>
   <link>https://smaugmuds.afkmods.com/topic/memory-leak-with-dohset-and-smashtildecopy-4823/&amp;p=23635#p23635</link>
   <description>This may be arbitrary as both solutions are &amp;quot;equal&amp;quot; (haven&#039;t tested them though). But as far as style or standards goes, which would you consider more conformant? [code]free(argument);[/code] or [code]argument = smash_tilde(argument);[/code] Assuming that this is a standard across all codebases: [code]const char * smash_tilde(const char *);[/code] I&#039;m compiling on g++ and most of my char * argument&#039;s have been turned into const char *.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/memory-leak-with-dohset-and-smashtildecopy-4823/&amp;p=23635#p23635</guid>
   <pubDate>Wed, 7 Sep 2016 18:29:10 CDT</pubDate>
   <category>SWFOTE FUSS</category>
   <author>nobody@example.com (Kasji)</author>
  </item>
  <item>
   <title>Memory leak with do_hset and smash_tilde_copy?</title>
   <link>https://smaugmuds.afkmods.com/topic/memory-leak-with-dohset-and-smashtildecopy-4823/&amp;p=23631#p23631</link>
   <description>great find, feel free to fix it and post a fix for everyone, if you would like to :)</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/memory-leak-with-dohset-and-smashtildecopy-4823/&amp;p=23631#p23631</guid>
   <pubDate>Mon, 5 Sep 2016 23:10:20 CDT</pubDate>
   <category>SWFOTE FUSS</category>
   <author>nobody@example.com (Remcon)</author>
  </item>
  <item>
   <title>Memory leak with do_hset and smash_tilde_copy?</title>
   <link>https://smaugmuds.afkmods.com/topic/memory-leak-with-dohset-and-smashtildecopy-4823/&amp;p=23625#p23625</link>
   <description>So, do_hset uses smash_tilde_copy. smash_tilde_copy uses strdup and returns a pointer to this duplicate string. do_hset doesn&#039;t free this string. Isn&#039;t this a memory leak?</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/memory-leak-with-dohset-and-smashtildecopy-4823/&amp;p=23625#p23625</guid>
   <pubDate>Mon, 5 Sep 2016 01:43:29 CDT</pubDate>
   <category>SWFOTE FUSS</category>
   <author>nobody@example.com (Kasji)</author>
  </item>
 </channel>
</rss>
