[Swan-commit] Changes to ref refs/heads/master
Paul Wouters
paul at vault.libreswan.fi
Sun Sep 11 20:23:57 UTC 2016
New commits:
commit cfcfd753940407da0e11f7f558297fb2919e3ab9
Author: Paul Wouters <pwouters at redhat.com>
Date: Sun Sep 11 16:19:06 2016 -0400
pluto: delete unused pluto_ifn_inst, fix some leaks/allocations (lsw#272)
pluto_ifn_inst was being set but never used.
When using --leak-detective, there are various combinations possible
of getting some pluto global values initiated. These can come in
either via ipsec.conf or via pluto command line options. Some of
these options did not use any allocation (pluto_foo = optarg) while
some used strdup() and some used clone_str(optarg). Also, the order
of pluto options matters - whether --config /etc/ipsec.conf appears
before or after the option and/or whether the option was specified
in the config or/and commandline.
In some cases, I opted for simplicity by just marking the value
with "(ignore)" in the allocation, causing leak-detective to not
report it. Some cases we can now always call pfreeany()
More information about the Swan-commit
mailing list