Skip to content

Commit

Permalink
Change free to xfree
Browse files Browse the repository at this point in the history
  • Loading branch information
ohler55 committed Jan 26, 2023
1 parent bf71563 commit ff31778
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All changes to the Ox gem are documented here. Releases follow semantic versioning.

## [2.14.14] - 2023-01-26

### Fixed

- Change free to xfree on ruby alloced memory.

## [2.14.13] - 2023-01-16

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion ext/ox/sax_stack.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ stack_pop(NStack stack) {
if (stack->head < stack->tail) {
stack->tail--;
if (stack->tail->name != stack->tail->name_buf) {
free((char*)(stack->tail->name));
xfree((char*)(stack->tail->name));
}
return stack->tail;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/ox/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

module Ox
# Current version of the module.
VERSION = '2.14.13'
VERSION = '2.14.14'
end

0 comments on commit ff31778

Please sign in to comment.