Plug minor leak when we fail loading a vcl

parent bd7d12b8
......@@ -347,6 +347,7 @@ vcl_KillBackends(struct vcl *vcl)
REPLACE(vdir->cli_name, NULL);
AN(vdir->methods->destroy);
vdir->methods->destroy(vdir->dir);
FREE_OBJ(vdir->dir);
FREE_OBJ(vdir);
}
}
......
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