Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: The `size` parameter passed to these two functions is not the actual final size in the heap, as the heap may round the size up if it isn't a multiple of `HeapAlign` (which happens to be 8). This was a quite rare occurrence, since most of our objects happen to have a size that is a multiple of 8 anyway; however, it can happen, and if it did, `freeAlloc` would try to subtract more bytes than were added, resulting in an assert. Reviewed By: neildhar Differential Revision: D25078476 fbshipit-source-id: cc7c0c824f3d41fe3ddc8ec6a7a1d34b96d896f0
- Loading branch information