[PATCH 11/12] lib/timeutils: fix memory leak

Sami Kerola
2014-04-27T20:06:22Z

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
---
lib/timeutils.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/lib/timeutils.c b/lib/timeutils.c
index c1b632e..d542c2f 100644
--- a/lib/timeutils.c
+++ b/lib/timeutils.c
@@ -239,6 +239,7 @@ int parse_timestamp(const char *t, usec_t *usec)
return -ENOMEM;

r = parse_sec(z, &minus);
+ free(z);
if (r < 0)
return r;

--
1.9.2