]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] Fix memory freeing at exit, part 2
authorKrzysztof Piotr Oledzki <ole@ans.pl>
Sat, 31 May 2008 11:53:23 +0000 (13:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 7 Jun 2008 09:06:14 +0000 (11:06 +0200)
commit8001d6162e7e9fc312d5d9716c45bc972931e44d
treefd844fb8b9fd9d90345e5f87b73057b49d7cbc3e
parenta643baf09157656b0919d46c8b68a24fd5277589
[MEDIUM] Fix memory freeing at exit, part 2

- free oldpids
- call free(exp->preg), not only regfree(exp->preg): req_exp, rsp_exp
- build a list of unique uri_auths and eventually free it
- prune_acl_cond/free for switching_rules
- add a callback pointer to free ptr from acl_pattern (used for regexs) and execute it

==1180== malloc/free: in use at exit: 0 bytes in 0 blocks.
==1180== malloc/free: 5,599 allocs, 5,599 frees, 4,220,556 bytes allocated.
==1180== All heap blocks were freed -- no leaks are possible.
include/common/uri_auth.h
include/types/acl.h
src/acl.c
src/haproxy.c