mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 12:41:00 +02:00
BUG/MINOR: deviceatlas: fix resource leak on hot-reload compile failure
In da_haproxy_checkinst(), when da_atlas_compile() failed, the cnew buffer was leaked. Add a free(cnew) in the else branch. This should be backported to lower branches.
This commit is contained in:
parent
ea3b1bb866
commit
d8ff676592
@ -312,6 +312,8 @@ static void da_haproxy_checkinst(void)
|
||||
ha_alert("deviceatlas : instance update failed.\n");
|
||||
free(cnew);
|
||||
}
|
||||
} else {
|
||||
free(cnew);
|
||||
}
|
||||
#ifdef USE_THREAD
|
||||
HA_SPIN_UNLOCK(OTHER_LOCK, &dadwsch_lock);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user