Free handle storage.
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 26 Apr 2014 18:40:57 +0000 (19:40 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 26 Apr 2014 18:48:05 +0000 (19:48 +0100)
Memory leak found by valgrind.

miniexpect.c

index eca8e9a..7f02584 100644 (file)
@@ -80,6 +80,8 @@ mexp_close (mexp_h *h)
       return -1;
   }
 
+  free (h);
+
   return status;
 }