[PATCH] Memory leak, at src/common/exec.c - Mailing list pgsql-hackers

From Ranier Vilela
Subject [PATCH] Memory leak, at src/common/exec.c
Date
Msg-id CO2PR05MB26291FCBF168371F1124C480E3510@CO2PR05MB2629.namprd05.prod.outlook.com
Whole thread Raw
Responses Re: [PATCH] Memory leak, at src/common/exec.c
RE: [PATCH] Memory leak, at src/common/exec.c
List 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

pgsql-hackers by date:

Previous
From: Ranier Vilela
Date:
Subject: [PATCH] Windows port add support to BCryptGenRandom
Next
From: Ranier Vilela
Date:
Subject: RE: [PATCH] Windows port add support to BCryptGenRandom