Re: [PATCH] Fix potential memoryleak in guc.c

2019-06-09 Thread Tom Lane
"Zhang, Jie" writes: > In src\backend\utils\misc\guc.c, I found a potential memory leak. > make_absolute_path() return a malloc'd copy, we should free memory before the > function return false. If SelectConfigFiles were executed more than once per postmaster launch, this might be worth adding co

[PATCH] Fix potential memoryleak in guc.c

2019-06-09 Thread Zhang, Jie
Hi all In src\backend\utils\misc\guc.c, I found a potential memory leak. make_absolute_path() return a malloc'd copy, we should free memory before the function return false. SelectConfigFiles(const char *userDoption, co