[prev in list] [next in list] [prev in thread] [next in thread]
List: util-linux-ng
Subject: [PATCH 11/12] lib/timeutils: fix memory leak
From: Sami Kerola <kerolasa () iki ! fi>
Date: 2014-04-27 20:05:37
Message-ID: 1398629138-31718-12-git-send-email-kerolasa () iki ! fi
[Download RAW message or body]
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
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic