projects
/
pgbouncer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcca6a1
)
Free user_name and db_name in hba rule_free to avoid memory leak on hba file reload
author
secwall
<secwall@secwall.me>
Sat, 10 Jun 2017 10:45:35 +0000
(13:45 +0300)
committer
secwall
<secwall@secwall.me>
Sat, 10 Jun 2017 10:45:35 +0000
(13:45 +0300)
src/hba.c
patch
|
blob
|
history
diff --git
a/src/hba.c
b/src/hba.c
index 70e187ffc937c102068ae9fd3190f530137d1f28..0178a73978d63ae0e1640b6829ac54631df361cf 100644
(file)
--- a/
src/hba.c
+++ b/
src/hba.c
@@
-448,6
+448,8
@@
eat_comma:
static void rule_free(struct HBARule *rule)
{
+ strset_free(rule->db_name.name_set);
+ strset_free(rule->user_name.name_set);
free(rule);
}