mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Remove unnecessary casts in free() and pfree()
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/cf26e970-8e92-59f1-247a-aa265235075b%40enterprisedb.com
This commit is contained in:
@ -662,28 +662,28 @@ quote_object_name(const char *src1, const char *src2,
|
||||
temp = quote_identifier(src1);
|
||||
appendStringInfoString(&result, temp);
|
||||
if (src1 != temp)
|
||||
pfree((void *) temp);
|
||||
pfree(temp);
|
||||
}
|
||||
if (src2)
|
||||
{
|
||||
temp = quote_identifier(src2);
|
||||
appendStringInfo(&result, ".%s", temp);
|
||||
if (src2 != temp)
|
||||
pfree((void *) temp);
|
||||
pfree(temp);
|
||||
}
|
||||
if (src3)
|
||||
{
|
||||
temp = quote_identifier(src3);
|
||||
appendStringInfo(&result, ".%s", temp);
|
||||
if (src3 != temp)
|
||||
pfree((void *) temp);
|
||||
pfree(temp);
|
||||
}
|
||||
if (src4)
|
||||
{
|
||||
temp = quote_identifier(src4);
|
||||
appendStringInfo(&result, ".%s", temp);
|
||||
if (src4 != temp)
|
||||
pfree((void *) temp);
|
||||
pfree(temp);
|
||||
}
|
||||
return result.data;
|
||||
}
|
||||
|
Reference in New Issue
Block a user