summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2019-06-11 12:11:32 +0200
committerKarel Zak2019-06-11 12:11:32 +0200
commit4a0e70663ca80de725a924b0fa2f74c9d624c3df (patch)
tree46f5ef470db1243c537fa6b4f5ec5605e53e596b
parentcfdisk: free libfdisk items (diff)
downloadkernel-qcow2-util-linux-4a0e70663ca80de725a924b0fa2f74c9d624c3df.tar.gz
kernel-qcow2-util-linux-4a0e70663ca80de725a924b0fa2f74c9d624c3df.tar.xz
kernel-qcow2-util-linux-4a0e70663ca80de725a924b0fa2f74c9d624c3df.zip
lib/sysfs: fix reference counting for parent
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--lib/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sysfs.c b/lib/sysfs.c
index 804a0bd87..74d75897d 100644
--- a/lib/sysfs.c
+++ b/lib/sysfs.c
@@ -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);