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:
Nikita Popov 2019-09-11 10:59:04 +02:00
parent 1ce830a4aa
commit f945c82ec6

View File

@ -441,6 +441,7 @@ PHP_FUNCTION(readline_list_history)
}
}
}
free(hs);
}
#else /* readline */