BUG/MINOR: snapshots: leak of snapshots on deinit()
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 7 Aug 2020 12:48:37 +0000 (14:48 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 7 Aug 2020 12:55:33 +0000 (14:55 +0200)
commitefc5a9d55ba46a934f1474802b90c679461ebc92
tree5ee042c315b21de5c411bcae1dc0fc75fbc705ba
parent6ad7df423b71470babef545506a1af569074fc59
BUG/MINOR: snapshots: leak of snapshots on deinit()

Free the snapshots on deinit() when they were initialized in a proxy
upon an error.

This was introduced by c55015e ("MEDIUM: snapshots: dynamically allocate
the snapshots").

Should be backported as far as 1.9.
src/haproxy.c