Commit cea4eb2d authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

vsl: Plug leak when initial reset fails

parent 8a9610c8
......@@ -295,6 +295,7 @@ VSL_CursorVSM(struct VSL_data *vsl, struct vsm *vsm, unsigned options)
r = vslc_vsm_reset(&c->cursor);
if (r != vsl_end) {
AZ(VSM_Unmap(vsm, &vf));
(void)vsl_diag(vsl, "Cursor initialization failure (%d)", r);
FREE_OBJ(c);
return (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