[curl] UAF and double-free in MQTT sending [CVE-2021-22945]
Straightforward use-after-free in libcurl when processing MQTTs.The mqtt_doing()
routine will attempt to send any remainder of outgoing packet data using the mq->sendleftovers
pointer, freeing that pointer, but then never clearing the reference…