Don't free subtype field unconditionally.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-08-18 19:07:29 +00:00
1 parent 345c934993
commit 2a10112379
1 file changed
+2 -1
@@ -262,7 +262,8 @@ static void xenbus_release_device(struct device *dev)
if (dev) {
struct xenbus_device *xendev = to_xenbus_device(dev);
kfree(xendev->subtype);
if (xendev->subtype)
kfree(xendev->subtype);
kfree(xendev);
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.