diff options
author | Karel Zak <kzak@redhat.com> | 2013-08-20 17:52:47 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2013-08-20 17:52:47 +0200 |
commit | 73d5b4ebdb0658eb736bac12a4b6e60f56aae5db (patch) | |
tree | db895da71f41c292a1f303a3e3e7754d221ed9d3 | |
parent | a2f17bb24ee7c3dd25639f78d5fd123161392e0c (diff) | |
download | util-linux-73d5b4ebdb0658eb736bac12a4b6e60f56aae5db.tar.gz |
pylibmount: remove unnecessary code
It's enough to call mnt_free_fs() to remove fs from the table.
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | libmount/python/tab.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libmount/python/tab.c b/libmount/python/tab.c index da710926..46108c1b 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 |