summaryrefslogtreecommitdiff
path: root/src/tools/irm/irm_ipcp_destroy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/irm/irm_ipcp_destroy.c')
-rw-r--r--src/tools/irm/irm_ipcp_destroy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/irm/irm_ipcp_destroy.c b/src/tools/irm/irm_ipcp_destroy.c
index ebd4283d..9768b5e1 100644
--- a/src/tools/irm/irm_ipcp_destroy.c
+++ b/src/tools/irm/irm_ipcp_destroy.c
@@ -21,6 +21,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include <ouroboros/irm.h>
@@ -66,5 +67,7 @@ int do_destroy_ipcp(int argc, char ** argv)
if (irm_destroy_ipcp(apis[i]))
return -1;
+ free(apis);
+
return 0;
}