From: Yu Yang <[email protected]>

free the allocated memory in the end of the function.

Signed-off-by: Yu Yang <[email protected]>
---
 dog/vdi.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/dog/vdi.c b/dog/vdi.c
index 3766273..3b4673f 100644
--- a/dog/vdi.c
+++ b/dog/vdi.c
@@ -779,6 +779,7 @@ out:
                        sd_err("allowing inode update failed");
        }
 
+       free(vs);
        return ret;
 }
 
-- 
1.7.9.5




-- 
sheepdog mailing list
[email protected]
https://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to