]> git.ipfire.org Git - thirdparty/util-linux.git/commit
swapoff: clean up tag resolution
authorKarel Zak <kzak@redhat.com>
Wed, 9 Apr 2025 08:51:59 +0000 (10:51 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 9 Apr 2025 09:02:03 +0000 (11:02 +0200)
commit702f6f0178fa74cf66a13813bd40e5c7839cfe6a
tree705f47c61d0537016402799153ccecb9e09be201
parent5c3d3bb01bd063303a0c4893e5b385b4c10914a2
swapoff: clean up tag resolution

- Rename swapoff_resolve_tag() to resolve_swapfile_tag() and retain
  only code relevant to swapfiles.

- Always call mnt_resolve_*() before resolve_swapfile_tag() to resolve
  tags/paths on standard block devices.

- Call free() for resolve_swapfile_tag() to avoid memory leaks.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/swapoff.c