sysroot: Make coverity happy with dirname+strdup
authorColin Walters <walters@verbum.org>
Thu, 15 Aug 2024 15:28:45 +0000 (11:28 -0400)
committerColin Walters <walters@verbum.org>
Thu, 15 Aug 2024 15:29:22 +0000 (11:29 -0400)
commit70430fe02b9050cbf4716659a697a500f3856c0a
treed69fc56289f5433e16b9aae041a4e8c633aba4b5
parent0d5e554b695fb699bae87de68936cf9dcf8fe874
sysroot: Make coverity happy with dirname+strdup

Similar to d528083cae3492f9b9424f3c9830869af7b4cbd0 - I don't
believe we actually had a leak here because `dirname` always
returns the same start pointer, but this makes Coverity
happy.

Signed-off-by: Colin Walters <walters@verbum.org>
src/libostree/ostree-sysroot.c