lib/sysfs: fix reference counting for parent
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
41994e0097
commit
4a0e70663c
|
@ -120,7 +120,7 @@ static void sysfs_blkdev_deinit_path(struct path_cxt *pc)
|
||||||
if (!blk)
|
if (!blk)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ul_ref_path(blk->parent);
|
ul_unref_path(blk->parent);
|
||||||
free(blk);
|
free(blk);
|
||||||
|
|
||||||
ul_path_set_dialect(pc, NULL, NULL);
|
ul_path_set_dialect(pc, NULL, NULL);
|
||||||
|
|
Loading…
Reference in New Issue