mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
Use the proper freeing method
As according to http://www.postgresql.org/docs/9.0/static/libpq-exec.html#LIBPQ-EXEC-ESCAPE-STRING Signed-off-by: Dan Farina <daniel@heroku.com>
This commit is contained in:
@@ -210,7 +210,7 @@ getMasterConnection(PGconn *standby_conn, int id, char *cluster,
|
|||||||
strlen(schema_str));
|
strlen(schema_str));
|
||||||
|
|
||||||
maxlen_snprintf(schema_quoted, "%s", identifier);
|
maxlen_snprintf(schema_quoted, "%s", identifier);
|
||||||
free(identifier);
|
PQfreemem(identifier);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* find all nodes belonging to this cluster */
|
/* find all nodes belonging to this cluster */
|
||||||
|
|||||||
4
repmgr.c
4
repmgr.c
@@ -349,7 +349,7 @@ do_master_register(void)
|
|||||||
strlen(schema_str));
|
strlen(schema_str));
|
||||||
|
|
||||||
maxlen_snprintf(schema_quoted, "%s", identifier);
|
maxlen_snprintf(schema_quoted, "%s", identifier);
|
||||||
free(identifier);
|
PQfreemem(identifier);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if there is a schema for this cluster */
|
/* Check if there is a schema for this cluster */
|
||||||
@@ -537,7 +537,7 @@ do_standby_register(void)
|
|||||||
strlen(schema_str));
|
strlen(schema_str));
|
||||||
|
|
||||||
maxlen_snprintf(schema_quoted, "%s", identifier);
|
maxlen_snprintf(schema_quoted, "%s", identifier);
|
||||||
free(identifier);
|
PQfreemem(identifier);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if there is a schema for this cluster */
|
/* Check if there is a schema for this cluster */
|
||||||
|
|||||||
Reference in New Issue
Block a user