diff options
author | dimitri staessens <[email protected]> | 2016-10-30 09:56:43 +0100 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2016-10-30 09:56:43 +0100 |
commit | 298f78d426cdf8bcd9c8890f117d0236bde20bc4 (patch) | |
tree | 8adce2aa9ec630311af62186a181ab8212c3d59f /src/tools/irm/irm_ipcp_bootstrap.c | |
parent | d59595fb94c7198c54bbd584f2d6c1faecd87fec (diff) | |
download | ouroboros-298f78d426cdf8bcd9c8890f117d0236bde20bc4.tar.gz ouroboros-298f78d426cdf8bcd9c8890f117d0236bde20bc4.zip |
tools: Fix memleak in ipcp bootstrap
Diffstat (limited to 'src/tools/irm/irm_ipcp_bootstrap.c')
-rw-r--r-- | src/tools/irm/irm_ipcp_bootstrap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/irm/irm_ipcp_bootstrap.c b/src/tools/irm/irm_ipcp_bootstrap.c index 7d72eb15..98efe16d 100644 --- a/src/tools/irm/irm_ipcp_bootstrap.c +++ b/src/tools/irm/irm_ipcp_bootstrap.c @@ -196,8 +196,10 @@ int do_bootstrap_ipcp(int argc, char ** argv) } for (i = 0; i < len; i++) - if (irm_bootstrap_ipcp(apis[i], &conf)) + if (irm_bootstrap_ipcp(apis[i], &conf)) { + free(apis); return -1; + } if (apis != NULL) free(apis); |