X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=sshcrcda.c;h=09e5f8d09f714bdd6ee3872391d164e702587589;hb=44239efc6bd47006b53c1a853a60f02501d61c6e;hp=7fb5767ce0a49e20bd09078501e3094f1203a05e;hpb=d36a4c3685f17057ba2c80ac471c1284b615469f;p=PuTTY.git diff --git a/sshcrcda.c b/sshcrcda.c index 7fb5767c..09e5f8d0 100644 --- a/sshcrcda.c +++ b/sshcrcda.c @@ -71,7 +71,12 @@ void *crcda_make_context(void) void crcda_free_context(void *handle) { - sfree(handle); + struct crcda_ctx *ctx = (struct crcda_ctx *)handle; + if (ctx) { + sfree(ctx->h); + ctx->h = NULL; + sfree(ctx); + } } static void crc_update(uint32 *a, void *b)