This was found by smatch (http://repo.or.cz/w/smatch.git/)

regards,
dan carpenter

Signed-off-by: Dan Carpenter <[email protected]>

--- orig/fs/btrfs/volumes.c     2009-03-26 15:59:39.000000000 +0300
+++ devel/fs/btrfs/volumes.c    2009-03-26 16:00:28.000000000 +0300
@@ -342,6 +342,7 @@
        return fs_devices;
 error:
        free_fs_devices(fs_devices);
+       kfree(device);
        return ERR_PTR(-ENOMEM);
 }
 
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to