Commit 2700c197 authored by Geoff Simmons's avatar Geoff Simmons

VMOD blob: correct a special case in object finalization.

Don't attempt to free the static empty string that the VMOD assigns
for empty encodings.
parent da790a8a
......@@ -306,7 +306,7 @@ vmod_blob__fini(struct vmod_blob_blob **blobp)
b->blob.priv = NULL;
}
for (int i = 0; i < __MAX_ENCODING; i++)
if (b->encoding[i] != NULL && b->encoding[i][0] != '\0') {
if (b->encoding[i] != NULL && b->encoding[i] != empty) {
free(b->encoding[i]);
b->encoding[i] = NULL;
}
......
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