LWN.net Logo

dm: fix memory leak

From:  Joe Thornber <thornber@sistina.com>
To:  Joe Thornber <thornber@sistina.com>
Subject:  [RFC 1/3] dm: fix memory leak
Date:  Tue, 1 Jul 2003 16:01:21 +0100
Cc:  Linux Mailing List <linux-kernel@vger.kernel.org>, dm-devel@sistina.com

Fix memory leak.
--- diff/drivers/md/dm-ioctl.c	2003-06-30 10:07:33.000000000 +0100
+++ source/drivers/md/dm-ioctl.c	2003-06-30 11:39:38.000000000 +0100
@@ -238,6 +238,7 @@
 	list_del(&hc->name_list);
 	unregister_with_devfs(hc);
 	dm_put(hc->md);
+	free_cell(hc);
 }
 
 void dm_hash_remove_all(void)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Copyright © 2003, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds