repo: Fix `dir_or_file_path` memory leak
authorLuke Yang <luke.jia.yang@gmail.com>
Wed, 12 Jun 2024 19:55:37 +0000 (15:55 -0400)
committerLuke Yang <luke.jia.yang@gmail.com>
Thu, 20 Jun 2024 19:09:11 +0000 (15:09 -0400)
commitd528083cae3492f9b9424f3c9830869af7b4cbd0
tree8dcb156621630046b4361bcf62bffc6b368d10fd
parent20d5bc8453edf780b6a162a6568e211310211108
repo: Fix `dir_or_file_path` memory leak

Coverity points out that we have a memory leak from
`g_strdup(dir_or_file_path)`. Make the duplication of the string a
temporary variable that is freed using `g_autofree`.
src/libostree/ostree-repo-static-delta-core.c