]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
pylibmount: remove unnecessary code
authorKarel Zak <kzak@redhat.com>
Tue, 20 Aug 2013 15:52:47 +0000 (17:52 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 20 Aug 2013 15:52:47 +0000 (17:52 +0200)
It's enough to call mnt_free_fs() to remove fs from the table.

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/python/tab.c

index da71092635251f01412e72dc4f3a319c4ae51230..46108c1b44660e41819d2a9e471b8f50aead72b6 100644 (file)
@@ -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