]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] memory: update pool_free2() to support NULL pointers
authorWilly Tarreau <w@1wt.eu>
Sun, 3 Aug 2008 15:41:33 +0000 (17:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 3 Aug 2008 18:48:50 +0000 (20:48 +0200)
commit48d63db7a87df0228961b60d65b0237a733d34d1
tree7a9a89e046be8cc49401f4c320fbc22ab6b50e1e
parenta534fea4789599a6af5a1e8c9b743ded40ce6fe2
[MEDIUM] memory: update pool_free2() to support NULL pointers

In order to make pool usage more convenient, let pool_free2()
support NULL pointers by doing nothing, just like the standard
free(3) call does.

The various call places have been updated to remove the now
useless checks.
include/common/memory.h
src/appsession.c
src/client.c
src/session.c