psql memory leaks - Mailing list pgsql-hackers

From Kyotaro Horiguchi
Subject psql memory leaks
Date
Msg-id 20230221.115555.89096938631423206.horikyota.ntt@gmail.com
Whole thread Raw
Responses Re: psql memory leaks
List pgsql-hackers
I noticed that \bind is leaking memory for each option.

=# SELECT $1, $2, $3 \ bind 1 2 3 \g

The leaked memory blocks are comming from
psql_scan_slash_option(). The attached small patch resolves that
issue.  I looked through the function's call sites, but I didn't find
the same mistake.

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center

Attachment

pgsql-hackers by date:

Previous
From: Kyotaro Horiguchi
Date:
Subject: Re: psql \watch 2nd argument: iteration count
Next
From: Kyotaro Horiguchi
Date:
Subject: Re: Add WAL read stats to pg_stat_wal