opensubscriber
   Find in this group all groups
 
Unknown more information…

s : splint-discuss@ares.cs.Virginia.EDU 18 June 2007 • 5:26PM -0400

Re: [splint-discuss] Re: Can't fit our memory management to Splint's model
by Tommy Pettersson

REPLY TO AUTHOR
 
REPLY TO GROUP




On Mon, Jun 18, 2007 at 08:43:32AM +0200, Wenzel, Bodo wrote:
> static void
> s_free (/*@only@*/ /*@null@*/ struct s * f) {
>   if ( f == NULL )
>     return;
>   s1_free(f->f1);
>   s2_free(f->f2);
>   free(f);
> }

It has the problem that if you "forget" to free e.g. f->f2 in
s_free() splint doesn't warn you about it. Maybe not a big deal
though, if s_free is simple.


--
Tommy Pettersson <ptp@lysa...>
_______________________________________________
splint-discuss mailing list
splint-discuss@ares...
http://www.cs.Virginia.EDU/mailman-2.1.5/listinfo/splint-discuss

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.