summaryrefslogtreecommitdiff
path: root/cmd/cmd_close.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/cmd_close.c')
-rw-r--r--cmd/cmd_close.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/cmd_close.c b/cmd/cmd_close.c
index d1d6fc7..a789cd0 100644
--- a/cmd/cmd_close.c
+++ b/cmd/cmd_close.c
@@ -22,5 +22,12 @@ int c_close( cmd_arg_t *arg )
return -1;
}
+ // clean buf
+ if ( g_buf->buf != NULL )
+ {
+ buf_zero( g_buf );
+ buf_free( g_buf );
+ }
+
return 0;
} \ No newline at end of file