From: Karel Zak Date: Tue, 20 Aug 2013 15:52:47 +0000 (+0200) Subject: pylibmount: remove unnecessary code X-Git-Tag: v2.24-rc1~361 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73d5b4ebdb0658eb736bac12a4b6e60f56aae5db;p=thirdparty%2Futil-linux.git pylibmount: remove unnecessary code It's enough to call mnt_free_fs() to remove fs from the table. Signed-off-by: Karel Zak --- diff --git a/libmount/python/tab.c b/libmount/python/tab.c index da71092635..46108c1b44 100644 --- a/libmount/python/tab.c +++ b/libmount/python/tab.c @@ -548,7 +548,6 @@ void pymnt_free_table(struct libmnt_table *tab) while (mnt_table_first_fs(tab, &fs) == 0) { PyObject *obj = mnt_fs_get_userdata(fs); - mnt_table_remove_fs(tab, fs); if (obj) Py_DECREF(obj); /* (possible) destruction via object destructor */ else