Avoid possible memory leak (src/common/rmtree.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Avoid possible memory leak (src/common/rmtree.c)
Date: 2023-07-25 14:31:05
Message-ID: CAEudQAoN3-2ZKBALThnEk_q2hu8En5A0WG9O+5siJTQKVZzoWQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Per Coverity.

rmtree function can leak 64 bytes per call,
when it can't open a directory.

patch attached.

best regards,
Ranier Vilela

Attachment Content-Type Size
0003-Avoid-possible-memory-leak-64-bytes-per-rmtree-call-.patch application/octet-stream 1.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2023-07-25 14:35:09 Re: [PATCH] Small refactoring of inval.c and inval.h
Previous Message Daniel Gustafsson 2023-07-25 14:21:42 Re: sslinfo extension - add notbefore and notafter timestamps