Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
io: avoid double-free when closing QIOChannelBuffer
The QIOChannelBuffer's close implementation will free the internal data buffer. It failed to reset the pointer to NULL though, so when the object is later finalized it will free it a second time with predictable crash. Reviewed-by: Dr. David Alan Gilbert <[email protected]> Signed-off-by: Daniel P. Berrange <[email protected]> Reviewed-by: Juan Quintela <[email protected]> Message-Id: <[email protected]> Signed-off-by: Amit Shah <[email protected]>
- Loading branch information