]> granicus.if.org Git - pgbouncer/commitdiff
Free user_name and db_name in hba rule_free to avoid memory leak on hba file reload
authorsecwall <secwall@secwall.me>
Sat, 10 Jun 2017 10:45:35 +0000 (13:45 +0300)
committersecwall <secwall@secwall.me>
Sat, 10 Jun 2017 10:45:35 +0000 (13:45 +0300)
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);
 }