]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - sshcrcda.c
Move sk_poll() inside (!gotevent), which is more logical but doesn't have
[PuTTY.git] / sshcrcda.c
index 7fb5767ce0a49e20bd09078501e3094f1203a05e..09e5f8d09f714bdd6ee3872391d164e702587589 100644 (file)
@@ -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)