Plug inconsequential leak spotted by Flexelint

parent cd382478
...@@ -218,6 +218,7 @@ vdp_init(VRT_CTX, struct vdp_ctx *vc, void **priv, struct objcore *objcore) ...@@ -218,6 +218,7 @@ vdp_init(VRT_CTX, struct vdp_ctx *vc, void **priv, struct objcore *objcore)
VSLb(vc->vsl, SLT_Error, "vdfp_pipe: vdp %s: cannot allocate " VSLb(vc->vsl, SLT_Error, "vdfp_pipe: vdp %s: cannot allocate "
"buffer size %zd: %s", obj->name, obj->bufsz, "buffer size %zd: %s", obj->name, obj->bufsz,
VAS_errtxt(errno)); VAS_errtxt(errno));
FREE_OBJ(state);
return (-1); return (-1);
} }
*priv = state; *priv = state;
......
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