Avoid memory leak on error while parsing pg_stat_statements dump file By using palloc() instead of raw malloc().
Reported-by: Gaurav Singh <[email protected]> Reviewed-by: Lukas Fittl <[email protected]> Reviewed-by: Daniel Gustafsson <[email protected]> Discussion: https://www.postgresql.org/message-id/caecq1byr9s4eqlfdjzzjhu8fj-mtbmrpw-9j-r2gscn+hes...@mail.gmail.com Backpatch-through: 14 Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a6d03067ff5d2198caf4805882dcdbe813a55817 Modified Files -------------- contrib/pg_stat_statements/pg_stat_statements.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
