Skip to content

Commit

Permalink
Fix incorrect free in 0-case for avifRWDataSet()
Browse files Browse the repository at this point in the history
  • Loading branch information
joedrago committed Nov 22, 2019
1 parent 50a114c commit 5932a05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- Fix incorrect free in 0-case for `avifRWDataSet()`

## [0.5.1] - 2019-11-21
### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/rawdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void avifRWDataSet(avifRWData * raw, const uint8_t * data, size_t len)
avifRWDataRealloc(raw, len);
memcpy(raw->data, data, len);
} else {
avifFree(raw);
avifRWDataFree(raw);
}
}

Expand Down

0 comments on commit 5932a05

Please sign in to comment.