summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-30 09:56:43 +0100
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-30 09:56:43 +0100
commit298f78d426cdf8bcd9c8890f117d0236bde20bc4 (patch)
tree8adce2aa9ec630311af62186a181ab8212c3d59f /src
parentd59595fb94c7198c54bbd584f2d6c1faecd87fec (diff)
downloadouroboros-298f78d426cdf8bcd9c8890f117d0236bde20bc4.tar.gz
ouroboros-298f78d426cdf8bcd9c8890f117d0236bde20bc4.zip
tools: Fix memleak in ipcp bootstrap
Diffstat (limited to 'src')
-rw-r--r--src/tools/irm/irm_ipcp_bootstrap.c4
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);