Commit 6ca1aef1 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't double-free.

Amazingly JEMALLOC didn't spot this one.
parent a420b7fe
......@@ -92,8 +92,6 @@ BAN_Abandon(struct ban_proto *bp)
CHECK_OBJ_NOTNULL(bp, BAN_PROTO_MAGIC);
VSB_delete(bp->vsb);
if (bp->err != NULL && bp->err != ban_build_err_no_mem)
free(bp->err);
FREE_OBJ(bp);
}
......
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