pspp-dev
[Top][All Lists]
Advanced

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

Re: Debugging case refs


From: John Darrington
Subject: Re: Debugging case refs
Date: Tue, 26 Oct 2010 08:47:41 +0000
User-agent: Mutt/1.5.18 (2008-05-17)

On Mon, Oct 25, 2010 at 09:57:47PM -0700, Ben Pfaff wrote:
     
     From: Ben Pfaff <address@hidden>
     Date: Mon, 25 Oct 2010 21:56:48 -0700
     Subject: [PATCH] case: Add support for debugging case reference count 
leaks.
      
     -static inline struct ccase *case_ref (const struct ccase *);
     +struct ccase *case_ref (const struct ccase *);

I think it's important that the case_ref function has the WARN_UNUSED_RESULT 
flag.
When DEBUG_CASEREFS=1, simply calling case_ref (c) without assigning the result
will not copy the case.


J'
     

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


Attachment: signature.asc
Description: Digital signature


reply via email to

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