Skip to content
Browse files

avoid double free on repmgrd exit as master

Per commit from Charles Duffy <charles@tippr.com>
and faillure to cherry-pick it correctly.

Conflicts:

	repmgrd.c
  • Loading branch information...
1 parent 431e27b commit 4259e2c410fd0ef1273c7d1b4ab8fcf1e778e968 @klando klando committed with Jaime2ndQuadrant Feb 11, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +1 −2 repmgrd.c
View
1 .gitignore
@@ -1,4 +1,5 @@
*~
+*.o
*.so
repmgr
repmgrd
View
3 repmgrd.c
@@ -57,7 +57,6 @@ PGconn *myLocalConn = NULL;
/* Primary info */
t_configuration_options primary_options;
-
PGconn *primaryConn = NULL;
char sqlquery[QUERY_STR_LEN];
@@ -572,7 +571,7 @@ do_failover(void)
unsigned int uxrecoff;
char last_wal_standby_applied[MAXLEN];
- PGconn *nodeConn;
+ PGconn *nodeConn = NULL;
/*
* will get info about until 50 nodes,

0 comments on commit 4259e2c

Please sign in to comment.
Something went wrong with that request. Please try again.