composefs: Avoid double unref
authorColin Walters <walters@verbum.org>
Fri, 16 Jun 2023 18:52:53 +0000 (14:52 -0400)
committerColin Walters <walters@verbum.org>
Sat, 17 Jun 2023 13:11:51 +0000 (09:11 -0400)
commit79adccee38afb01d5d410ca61c721aa0ffafde9a
tree64ca143fc506c732b0ff27372f62fa072d190fa5
parent1fe2bb9f5a3ee2d138dc04124a34b17a06468525
composefs: Avoid double unref

The interaction of `iter_loop` and autofree is way too subtle;
I happened to be reading this code and noticed we did the NULL
reset in one path but not another.

The real fix is Rust...
src/libostree/ostree-repo-composefs.c