summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-09-11 10:59:04 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-09-11 10:59:04 +0200
commitf945c82ec693671e94830b4c0580aba8ea7ae2a5 (patch)
tree727d4c236107bd2324dc43ea959d6e047e882209
parent1ce830a4aaa626a6c33835297273249eefb8e643 (diff)
downloadphp-git-f945c82ec693671e94830b4c0580aba8ea7ae2a5.tar.gz
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.
-rw-r--r--ext/readline/readline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index b9435521ca..174556d4d3 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -441,6 +441,7 @@ PHP_FUNCTION(readline_list_history)
}
}
}
+ free(hs);
}
#else /* readline */