Fix some folly memory leaks found with clang:dev + asan
authorSoren Lassen <soren@fb.com>
Wed, 24 Sep 2014 20:34:17 +0000 (13:34 -0700)
committerAnton Likhtarov <alikhtarov@fb.com>
Fri, 26 Sep 2014 22:24:02 +0000 (15:24 -0700)
commit03e99d2e90996a2a424a20b1a99c90d245344a7e
tree0496b75329d25bac3496b66fc15923cb4c5fefb4
parentd8e719111859150a8d310069513dd5099a623f8f
Fix some folly memory leaks found with clang:dev + asan

Summary:
Reverts the revert of the small_vector and test parts of D1569246.
I'm saving the SocketAddress fix for later, because it caused problems
and needs more research.

Test Plan:
unit tests with clang:dev/asan

Reviewed By: njormrod@fb.com

Subscribers: mathieubaudet, philipp, meyering, njormrod

FB internal diff: D1575574

Blame Revision: D1575190
folly/small_vector.h
folly/test/PackedSyncPtrTest.cpp
folly/test/ThreadLocalTest.cpp