| From: | Ranier Vilela <ranier(dot)vf(at)gmail(dot)com> |
|---|---|
| To: | Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Silence resource leaks alerts |
| Date: | 2025-04-10 18:10:02 |
| Message-ID: | CAEudQArMzZm7GS68Ht1wVs2jPoDq5JF3Hw8ogHAXaw_1zn6hyw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi.
Per Coverity.
Coverity has some alerts about resource leaks.
I think that is good silence.
While it is arguable that this is a false warning, there is a benefit in
moving the initialization of the string buffer, silencing the warnings that
are presented in this case.
1. pg_overexplain.c
2. ruleutils.c
best regards,
Ranier Vilela
| Attachment | Content-Type | Size |
|---|---|---|
| postpone_string_buffer_creation_pg_overexplain.patch | application/octet-stream | 530 bytes |
| postpone_string_buffer_creation_ruleutils.patch | application/octet-stream | 1.1 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Mahendra Singh Thalor | 2025-04-10 18:28:41 | Re: getting "shell command argument contains a newline or carriage return:" error with pg_dumpall when db name have new line in double quote |
| Previous Message | James Hunter | 2025-04-10 17:50:12 | Re: BitmapHeapScan streaming read user and prelim refactoring |