projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e556fb1
)
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:54:22 +0000
(23:54 +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 7e59419442e57c1a9354be09904e3bdd1fe1238a..385d5fe910a9719bbec1633ea236f8c9f2e4ac31 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