summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-cmd-peer.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src/cli-cmd-peer.c')
-rw-r--r--cli/src/cli-cmd-peer.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-peer.c b/cli/src/cli-cmd-peer.c
index 7f0d28f6d..60756f310 100644
--- a/cli/src/cli-cmd-peer.c
+++ b/cli/src/cli-cmd-peer.c
@@ -96,6 +96,9 @@ out:
if ((sent == 0) && (parse_error == 0))
cli_out ("Peer probe failed");
}
+ if (frame)
+ STACK_DESTROY (frame->root);
+
return ret;
}
@@ -161,6 +164,9 @@ out:
cli_out ("Peer detach failed");
}
+ if (frame)
+ STACK_DESTROY (frame->root);
+
return ret;
}
@@ -196,6 +202,10 @@ out:
if ((sent == 0) && (parse_error == 0))
cli_out ("Peer status failed");
}
+
+ if (frame)
+ STACK_DESTROY (frame->root);
+
return ret;
}