lib/repo-finder-avahi: Fix a leak in a GVariantIter loop
authorPhilip Withnall <withnall@endlessm.com>
Thu, 19 Oct 2017 13:04:10 +0000 (14:04 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 19 Oct 2017 13:16:59 +0000 (13:16 +0000)
commita1f020ffa45f9cb7dad86e4c87a3f78b6f47997c
treea33a55d625bdfebb0c93c9626527e902b77e8aed
parente466e482b156ad89c1dea8bcb0a5ee639f18e884
lib/repo-finder-avahi: Fix a leak in a GVariantIter loop

Use g_variant_iter_loop() rather than next(), since it automatically
handles freeing the child memory each iteration. Previously, we leaked
it for all but the last iteration.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1293
Approved by: cgwalters
src/libostree/ostree-repo-finder-avahi.c