Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes memory allocation and cleanup bugs in QMatrix
Summary: 1. When a QMatrix is created with the default constructor, codes_ is not allocated. Deconstructor should not attempt to delete codes in this case. 2. When a QMatrix is created with the parameterized constructor, computation of codesize_ is incorrect because std::ceil is used incorrectly. Reviewed By: ajoulin Differential Revision: D5265558 fbshipit-source-id: c5c258f2d3b28e6723652c39b3ad6fd613c1d595
- Loading branch information