]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/sysfs: fix reference counting for parent
authorKarel Zak <kzak@redhat.com>
Tue, 11 Jun 2019 10:11:32 +0000 (12:11 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 11 Jun 2019 10:11:32 +0000 (12:11 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/sysfs.c

index 804a0bd872e1b640d1b4bdb4a1f31358520dd91d..74d75897d7f3ec21747a250e28ecff32efa4192a 100644 (file)
@@ -120,7 +120,7 @@ static void sysfs_blkdev_deinit_path(struct path_cxt *pc)
        if (!blk)
                return;
 
-       ul_ref_path(blk->parent);
+       ul_unref_path(blk->parent);
        free(blk);
 
        ul_path_set_dialect(pc, NULL, NULL);