From 8be8727eedd24f436caa8d8af4a7176084625033 Mon Sep 17 00:00:00 2001 From: Marcel Poul Date: Wed, 2 Nov 2011 10:01:06 +0000 Subject: [PATCH] delete error string in context --- emi.canl.canl-c/src/canl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emi.canl.canl-c/src/canl.c b/emi.canl.canl-c/src/canl.c index 42b0d0a..7d138fa 100644 --- a/emi.canl.canl-c/src/canl.c +++ b/emi.canl.canl-c/src/canl.c @@ -48,6 +48,11 @@ void canl_free_ctx(canl_ctx cc) ctx->io_ctx = NULL; } + if (ctx->err_msg) { + free(ctx->err_msg); + ctx->err_msg = NULL; + } + free(ctx); cc = ctx = NULL; -- 1.8.2.3