Perl
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Perl

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 2nd, 2008, 05:30 PM
chromatic
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
imcc_init unneeded calls leaks memory

Wednesday 02 July 2008 12:56:56 NotFound wrote:

The imcc_init function is called from several places, and it allocates
memory without checking if already is initialized, with potential
memory leaking.
>

However, it's called during interpreter creation. And putting the
assertion:
>

PARRT_ASSERT(IMCC_INF(interp) == NULL);
>

confirms that is called several tiems, breaking a lot of tests.
>

Worse, the function lacks a prototype in an easily available header.
>

This patch cleans the isuue by dropping all calls from all places
except interpreter creation, and puts the assertion in place to verify
that is not recalled, avoiding memory leaks.

Thanks, applied in r28973.

-- c

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Perl > imcc_init unneeded calls leaks memory


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway