mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 21:56:31 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user