Branch: Tag:

2008-05-29

2008-05-29 22:50:20 by Martin Nilsson <mani@lysator.liu.se>

Added gc_trivial to some EXIT functions.

Rev: src/post_modules/Nettle/cipher.cmod:1.36
Rev: src/post_modules/Nettle/hash.cmod:1.28
Rev: src/post_modules/Nettle/nettle.cmod:1.44
Rev: src/post_modules/Nettle/nt.cmod:1.15

1:   /* nettle.cmod -*- c -*- */ - /* $Id: nettle.cmod,v 1.43 2007/12/20 19:03:46 nilsson Exp $ */ + /* $Id: nettle.cmod,v 1.44 2008/05/29 22:50:20 nilsson Exp $ */      #include "global.h"   #include "interpret.h"
202:    yarrow256_init(&THIS->ctx, 0, NULL);    }    EXIT +  gc_trivial;    {    /* It's ok to call free(NULL); */    free(THIS->sources);
322:    }       EXIT +  gc_trivial;    {    if(THIS->object) free_object(THIS->object);    if(THIS->iv) {
543:    THIS->backlog_len = 0;    }    -  EXIT { +  EXIT +  gc_trivial; +  {    if(THIS->backlog) {    MEMSET(THIS->backlog, 0, THIS->block_size);    free(THIS->backlog);
809:    THIS->ctx = xalloc(sizeof(struct knuth_lfib_ctx));    }    -  EXIT { +  EXIT +  gc_trivial; +  {    free(THIS->ctx);    }