pgpool2.git / summary / log / commit / refs
commit 3a84ffcc2fee5c32ee34722febe35a010281c165
Author: Bo Peng <pengbo@sraoss.co.jp>
Date: Tue Sep 15 12:53:44 2020 +0000
Fix coverity issues.
src/config/pool_config_variables.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/config/pool_config_variables.c b/src/config/pool_config_variables.c
index 7b516c086..28a5ad41d 100644
--- a/src/config/pool_config_variables.c
+++ b/src/config/pool_config_variables.c
@@ -5009,16 +5009,13 @@ SetHBDestIfFunc(int elevel)
if (addrs)
pfree(addrs);
+ if (if_names)
+ pfree(if_names);
ereport(elevel,
(errmsg("invalid watchdog configuration"),
errdetail("heartbeat_hostname%d is not defined", i)));
- if (addrs)
- pfree(addrs);
- if (if_names)
- pfree(if_names);
-
return false;
}
[parent: 47f6c22eb8d4]