X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/5d145a14925b0ea8a60af808252a7c3cf78f9631..679539d7ab96f188640d159ea0b004275db67356:/sshcrcda.c 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)