]> git.puffer.fish Git - matthieu/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@opensourcerouting.org>
Wed, 3 Oct 2018 19:32:11 +0000 (16:32 -0300)
commit6655966d2c2fe7a29ca29af4366fa3e044ad1170
treeb7996c2c0a0970dd6eb3e5799589bf8bbfdaa963
parent744f824a7315f8efaae40ea910955329f7b26e66
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>
lib/thread.c