Commit 0422bfb6 authored by Nils Goroll's avatar Nils Goroll

plug a memory leak if .final is used in init/fini

parent d00e9dc6
Pipeline #357 skipped
......@@ -369,7 +369,7 @@ vmod_digest_final(VRT_CTX, struct vmod_blobdigest_digest *h)
b->priv = malloc(digestsz);
AN(b->priv);
b->len = digestsz;
b->free = NULL;
b->free = free;
final(hash, &h->ctx, b->priv);
h->result = b;
return b;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment