OSDN Git Service

ip-up-vpn: Fix resource leaks in error cases
authorGreg Kaiser <gkaiser@google.com>
Mon, 4 Mar 2019 22:00:34 +0000 (14:00 -0800)
committerGreg Kaiser <gkaiser@google.com>
Mon, 4 Mar 2019 22:00:34 +0000 (14:00 -0800)
commite740353f0aa82f438a9c88e4f39a85763e2d9c6a
tree53c91f4f18cb98c83b613a065c34e13f2258173a
parent3e167da9163201484ce488ea6498aa930187c54b
ip-up-vpn: Fix resource leaks in error cases

These leaks aren't really consequential since this is a standalone
command, and these "leaks" are in main().  But by putting in simple
fixes for these, we reduce the noise when using static analysis to
find leaks in Android code.

Test: TreeHugger
Change-Id: I2cbb4585c6c8d59a0eb89a72f17dfc4fbc532249
cmds/ip-up-vpn/ip-up-vpn.c