pgpool2.git / summary / log / commit / refs
commit fd0a03f18be54fc776ebbb1aa099671b327416fb
Author: Masaya Kawamoto <kawamoto@sraoss.co.jp>
Date: Wed Sep 14 00:15:26 2022 +0000
Fix memory leak.
This was added in the previous commit a94451901c9be0627c5e9db04e05ef2d6835dcd7
src/main/pgpool_main.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/main/pgpool_main.c b/src/main/pgpool_main.c
index e4e5a9ea9..a70aadfcc 100644
--- a/src/main/pgpool_main.c
+++ b/src/main/pgpool_main.c
@@ -464,11 +464,6 @@ PgpoolMain(bool discard_status, bool clear_memcache_oidmaps)
on_proc_exit(FileUnlink, (Datum) un_addrs[i].sun_path);
}
- fds = malloc(sizeof(int) * (num_unix_fds + 1));
- if (fds == NULL)
- ereport(FATAL,
- (errmsg("failed to allocate memory in startup process")));
-
/* copy unix domain sockets */
memcpy(fds, unix_fds, sizeof(int) * num_unix_fds);
fds[num_unix_fds] = -1;
[parent: a94451901c9b]