X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/3d88e64dfcf5dc0fd361ce0c504c67a9196ce44c..77603464f5b4231df69eb20ca278062bd7aae9fb:/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)