projects
/
pgpool2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9149dd
)
Fix memory leak.
author
Tatsuo Ishii
<ishii@postgresql.org>
Sun, 24 Jun 2018 00:59:06 +0000
(09:59 +0900)
committer
Tatsuo Ishii
<ishii@postgresql.org>
Sun, 24 Jun 2018 00:59:06 +0000
(09:59 +0900)
Per Coverity.
src/auth/pool_hba.c
patch
|
blob
|
blame
|
history
diff --git
a/src/auth/pool_hba.c
b/src/auth/pool_hba.c
index 7d9a7b96f844e87282e2e0c068a03dbf602bbf1a..dd398db55f711835dd8ed2a1d81c93f6320e1455 100644
(file)
--- a/
src/auth/pool_hba.c
+++ b/
src/auth/pool_hba.c
@@
-663,8
+663,11
@@
parse_hba_line(TokenizedLine *tok_line, int elevel)
*val++ = '\0'; /* str now holds "name", val holds "value" */
if (!parse_hba_auth_opt(str, val, parsedline, elevel, err_msg))
+ {
/* parse_hba_auth_opt already logged the error message */
+ pfree(str);
return NULL;
+ }
pfree(str);
}
}