summaryrefslogtreecommitdiff
path: root/cmd/cmd_close.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2016-05-24 00:00:45 +0100
committerFreeArtMan <dos21h@gmail.com>2016-05-24 00:00:45 +0100
commit60f08b0a4676943651bc7b66cb8531325b1c6132 (patch)
tree5cea9737ea510f579cefa6a4712bf8caf0577da7 /cmd/cmd_close.c
parentcb141140579d796ae5cafe6da52b4f0b87be6a84 (diff)
downloadihe-60f08b0a4676943651bc7b66cb8531325b1c6132.tar.gz
ihe-60f08b0a4676943651bc7b66cb8531325b1c6132.zip
Added resize c
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