Fix subtle double-free in trimEnd; optionally pack IOBufQueue after append
authorTudor Bosman <tudorb@fb.com>
Fri, 8 Feb 2013 01:56:55 +0000 (17:56 -0800)
committerJordan DeLong <jdelong@fb.com>
Tue, 19 Mar 2013 00:07:02 +0000 (17:07 -0700)
commit794e35e56ba41a154cb84a2d4cbb37a7c37d4315
tree9584c8afd7354cb5250602d96340f3c29b33afcb
parent0e21224b1ca689045806121a6df08eecbced8ce7
Fix subtle double-free in trimEnd; optionally pack IOBufQueue after append

Test Plan: folly/io/test, both dbg and opt, standalone and in valgrind

Reviewed By: philipp@fb.com

FB internal diff: D702755
folly/io/IOBufQueue.cpp
folly/io/IOBufQueue.h
folly/io/test/IOBufQueueTest.cpp