]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix leak of curl handle on shutdown 24519/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 5 Sep 2018 20:56:41 +0000 (16:56 -0400)
committerPrashant D <pdhange@redhat.com>
Wed, 10 Oct 2018 02:02:34 +0000 (04:02 +0200)
commit97a2729f9bb5fbae46cd93ebcaf540c7cfb64435
tree60c9ad2fd5ed14c876dae9ed1b6f5ad88906661b
parent9bc750579c8838447b89d743132612e100f6d84b
rgw: fix leak of curl handle on shutdown

addresses a valgrind leak reported from curl_multi_add_handle().
requests that are still linked to the curl_multi handle need to be
unlinked and finished with ECANCELED, rather than just finished

Fixes: http://tracker.ceph.com/issues/35715
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit dd478483962188c1805f522deb7f7c7a33c5fadb)
src/rgw/rgw_http_client.cc