]> git.proxmox.com Git - mirror_frr.git/commit
lib: fix a memory leak in FreeBSD
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Tue, 25 Sep 2018 15:05:53 +0000 (12:05 -0300)
committerRafael Zalamena <rzalamena@gmail.com>
Sun, 14 Oct 2018 12:37:46 +0000 (14:37 +0200)
commita0350aed12dd46783d856ec3fba5e2eb3a9326d4
tree12cd2a9e051d7c3f477ed4c74ca80806e234731b
parentc8c24278b1d1da271089a36303bb7708568ce231
lib: fix a memory leak in FreeBSD

Two important changes:
* Centralize the thread teardown procedure;
* Save and restore thread mutex context to avoid losing the memory
  pointer;

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
(cherry picked from commit 6655966d2c2fe7a29ca29af4366fa3e044ad1170)
lib/thread.c