Allocate temporary filenames on the stack.
authorGuus Sliepen <guus@tinc-vpn.org>
Tue, 19 May 2015 22:55:00 +0000 (00:55 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Tue, 19 May 2015 22:58:00 +0000 (00:58 +0200)
commit3ccdf50beb6b2d3f2730bdc66006b43190537cde
tree253b34ea344bd4f00eb784ac289a125090b14073
parent58e8f598f38dbb2f210d8a62c8fb4b46513dc39f
Allocate temporary filenames on the stack.

This gets rid of xasprintf() in a number of places, and removes the need
to free() the temporary strings. A few potential memory leaks have been
fixed.
src/conf.c
src/invitation.c
src/net.c
src/net_setup.c
src/script.c
src/tincctl.c