[PATCH] Memory leak, at src/common/exec.c

From: Ranier Vilela <ranier_gyn(at)hotmail(dot)com>
To: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: [PATCH] Memory leak, at src/common/exec.c
Date: 2019-12-16 21:22:14
Message-ID: CO2PR05MB26291FCBF168371F1124C480E3510@CO2PR05MB2629.namprd05.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,
On exec.c, have two memory leaks, and a possible access beyond heap bounds, the patch tries to fix them.
According to documentation at:
https://en.cppreference.com/w/c/experimental/dynamic/strdup
"The returned pointer must be passed to free to avoid a memory leak. "

regards,
Ranier Vilela

Attachment Content-Type Size
exec_v1.patch text/x-patch 1.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ranier Vilela 2019-12-16 21:24:12 RE: [PATCH] Windows port add support to BCryptGenRandom
Previous Message Ranier Vilela 2019-12-16 21:18:10 [PATCH] Windows port add support to BCryptGenRandom