mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
More unconstify use
Replace casts whose only purpose is to cast away const with the unconstify() macro. Discussion: https://www.postgresql.org/message-id/flat/53a28052-f9f3-1808-fed9-460fd43035ab%402ndquadrant.com
This commit is contained in:
@ -4897,7 +4897,7 @@ add_placeholder_variable(const char *name, int elevel)
|
||||
|
||||
if (!add_guc_variable((struct config_generic *) var, elevel))
|
||||
{
|
||||
free((void *) gen->name);
|
||||
free(unconstify(char *, gen->name));
|
||||
free(var);
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user