[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debugging case refs

From: John Darrington
Subject: Debugging case refs
Date: Sun, 3 Oct 2010 11:32:54 +0000
User-agent: Mutt/1.5.18 (2008-05-17)

It's almost impossible to track down memory leaks when ref counted
objects are involved.  I'm proposing this patch to case.[ch] which
allows a preprocessor option to be set redefining case_ref and case_unref 
to unconditionally copy and destroy cases respectively.  

It would be easier to use if we could put the switch entirely inside case.c,
since almost everything depends upon case.h -- but we could only do that
if we sacrificed the benefits of the inline functions.


PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See or any PGP keyserver for public key.

Attachment: ccase.patch
Description: Text Data

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]