lib/fetch-curl: Unref timeout source
authorJonathan Lebon <jonathan@jlebon.com>
Tue, 27 Oct 2020 15:58:14 +0000 (11:58 -0400)
committerJonathan Lebon <jonathan@jlebon.com>
Tue, 27 Oct 2020 16:01:01 +0000 (12:01 -0400)
commit8717608c7e2edc998f370bac8912837a9f15c4b3
tree5877feb1db0a4186c0be43c1267953c8af2d4e15
parent40edc33ef3dc623c7ef699b4065fd38614f68910
lib/fetch-curl: Unref timeout source

The timeout timer should always be one-shot, so let's just always
destroy it in the callback. The main context has its own ref on it, so
it won't be freed behind its back.

This *should* fix a leak that was brought up in
https://bugzilla.redhat.com/show_bug.cgi?id=1891761.

Reported-by: Milan Crha <mcrha@redhat.com>
src/libostree/ostree-fetcher-curl.c