Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix double free in Cu6mPlayer::~Cu6mPlayer() (issue adplug#91)
Leave deallocation of song_data to destructor when decompression fails, just like on success. This fixes CVE-2019-15151. Even though load() is apparently not supposed to be called twice (and bad things happen in many players if you do), let's also avoid leaking song_data's memory in that case. Fixes: adplug#91
- Loading branch information