projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17bb625
)
Set connection back to NULL after freeing it.
author
Michael Meskes
<
[email protected]
>
Mon, 12 Mar 2018 22:52:08 +0000
(23:52 +0100)
committer
Michael Meskes
<
[email protected]
>
Tue, 13 Mar 2018 15:22:28 +0000
(16:22 +0100)
Patch by Jeevan Ladhe <
[email protected]
>
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 a55bf2b06a781286098e6f42c2f98650033d6e11..0465857eb6ee312472cc3a483b1b7d6d088f79ad 100644
(file)
--- a/
src/interfaces/ecpg/preproc/output.c
+++ b/
src/interfaces/ecpg/preproc/output.c
@@
-158,6
+158,7
@@
output_statement(char *stmt, int whenever_mode, enum ECPG_statement_type st)
free(stmt);
if (connection != NULL)
free(connection);
+ connection = NULL;
}
void
@@
-172,6
+173,7
@@
output_prepare_statement(char *name, char *stmt)
free(name);
if (connection != NULL)
free(connection);
+ connection = NULL;
}
void
@@
-192,6
+194,7
@@
output_deallocate_prepare_statement(char *name)
free(name);
if (connection != NULL)
free(connection);
+ connection = NULL;
}
static void