mirror of
https://github.com/php/php-src.git
synced 2024-12-20 23:39:46 +08:00
Free history_get_history_state() result
It's not documented, but per https://bugs.python.org/issue8065 the result is freshly malloc'd and needs to be freed.
This commit is contained in:
parent
1ce830a4aa
commit
f945c82ec6
@ -441,6 +441,7 @@ PHP_FUNCTION(readline_list_history)
|
||||
}
|
||||
}
|
||||
}
|
||||
free(hs);
|
||||
}
|
||||
|
||||
#else /* readline */
|
||||
|
Loading…
Reference in New Issue
Block a user