From: Richard W.M. Jones Date: Sat, 26 Apr 2014 18:40:57 +0000 (+0100) Subject: Free handle storage. X-Git-Tag: v1.1~20 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=469839bd6141f85d6382dc1878d97456ff80d9ea;p=miniexpect.git Free handle storage. Memory leak found by valgrind. --- diff --git a/miniexpect.c b/miniexpect.c index eca8e9a..7f02584 100644 --- a/miniexpect.c +++ b/miniexpect.c @@ -80,6 +80,8 @@ mexp_close (mexp_h *h) return -1; } + free (h); + return status; }