mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +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:
4
repmgr.c
4
repmgr.c
@@ -349,7 +349,7 @@ do_master_register(void)
|
||||
strlen(schema_str));
|
||||
|
||||
maxlen_snprintf(schema_quoted, "%s", identifier);
|
||||
free(identifier);
|
||||
PQfreemem(identifier);
|
||||
}
|
||||
|
||||
/* Check if there is a schema for this cluster */
|
||||
@@ -537,7 +537,7 @@ do_standby_register(void)
|
||||
strlen(schema_str));
|
||||
|
||||
maxlen_snprintf(schema_quoted, "%s", identifier);
|
||||
free(identifier);
|
||||
PQfreemem(identifier);
|
||||
}
|
||||
|
||||
/* Check if there is a schema for this cluster */
|
||||
|
||||
Reference in New Issue
Block a user