From 469839bd6141f85d6382dc1878d97456ff80d9ea Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 26 Apr 2014 19:40:57 +0100 Subject: [PATCH] Free handle storage. Memory leak found by valgrind. --- miniexpect.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 1.8.3.1