From 60f08b0a4676943651bc7b66cb8531325b1c6132 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Tue, 24 May 2016 00:00:45 +0100 Subject: Added resize c --- cmd/cmd_close.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cmd/cmd_close.c') 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 -- cgit v1.2.3