1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-08 00:47:37 +03:00

Fixed some memory leaks in ECPG.

Patch by Michael Paquier
This commit is contained in:
Michael Meskes
2015-06-12 14:52:55 +02:00
parent 1c150f8aa7
commit 4f60d66587
3 changed files with 15 additions and 5 deletions

View File

@@ -437,11 +437,13 @@ remove_variable_from_list(struct arguments ** list, struct variable * var)
void
dump_variables(struct arguments * list, int mode)
{
char *str_zero = mm_strdup("0");
char *str_zero;
if (list == NULL)
return;
str_zero = mm_strdup("0");
/*
* The list is build up from the beginning so lets first dump the end of
* the list: