projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
976e584
)
Set connection back to NULL after freeing it.
author
Michael Meskes
Mon, 12 Mar 2018 22:52:08 +0000
(23:52 +0100)
committer
Michael Meskes
Mon, 12 Mar 2018 22:53:39 +0000
(23:53 +0100)
Patch by Jeevan Ladhe
src/interfaces/ecpg/preproc/output.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/preproc/output.c
b/src/interfaces/ecpg/preproc/output.c
index 59d5d30df4a22962c332c3f9e9884567b269f1c1..93a1ad1498dce74f6bd3a3b190ab53804fe18264 100644
(file)
--- a/
src/interfaces/ecpg/preproc/output.c
+++ b/
src/interfaces/ecpg/preproc/output.c
@@
-155,6
+155,7
@@
output_statement(char *stmt, int whenever_mode, enum ECPG_statement_type st)
free(stmt);
if (connection != NULL)
free(connection);
+ connection = NULL;
}
void
@@
-169,6
+170,7
@@
output_prepare_statement(char *name, char *stmt)
free(name);
if (connection != NULL)
free(connection);
+ connection = NULL;
}
void
@@
-189,6
+191,7
@@
output_deallocate_prepare_statement(char *name)
free(name);
if (connection != NULL)
free(connection);
+ connection = NULL;
}
static void