scst_vdisk: fix memory leak in vdisk_write_proc()

Another leak valgrind popped out, this one in vdisk_write_proc().

Signed-off-by: David Butterfield <dab21774@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7116 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2017-04-13 23:39:14 +00:00
parent d1e78984c4
commit c0440263b0
+1 -1
View File
@@ -10429,7 +10429,7 @@ static int vdisk_write_proc(char *buffer, char **start, off_t offset,
PRINT_ERROR("File path \"%s\" is not "
"absolute", filename);
res = -EINVAL;
goto out_up;
goto out_free_vdev;
}
virt_dev->filename = kstrdup(filename, GFP_KERNEL);