free C string

From: Zhihong Yu <zyu(at)yugabyte(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: free C string
Date: 2021-07-14 17:19:14
Message-ID: CALNJ-vRiyD9e9Md+UjnBkGj1ShHy5X3UzyLXECr37YHEeDjkDg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,
I was looking at fmgr_internal_validator().

It seems prosrc is only used internally.

The patch frees the C string prosrc points to, prior to returning.

Please take a look.

Thanks

Attachment Content-Type Size
free-c-str.patch application/octet-stream 333 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Euler Taveira 2021-07-14 17:25:20 Re: row filtering for logical replication
Previous Message Tom Lane 2021-07-14 17:17:53 Re: free C string