Branch: Tag:

2015-05-07

2015-05-07 20:52:14 by Tobias S. Josefowitz <tobij@tobij.de>

Stdio.Buffer: less leaking of rewind structs

396:       static void io_unset_rewind_on_error( Buffer *io, ONERROR *x )    { - #if defined(PIKE_DEBUG) +     struct rewind_to *rew = x->arg; -  + #if defined(PIKE_DEBUG)    if( io->locked_move != rew->old_locked_move )    Pike_fatal( "Invalid io_rewind_on_error nesting\n"); -  free( rew ); +    #endif -  +  free( rew );    UNSET_ONERROR( (*x) );    io->locked_move--;    }