From d0c7b3bf7dd4c5514a1c73c64b3a5ab9f219e34d Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 11 Dec 2013 00:53:30 +0100 Subject: Plug memory leak in duration() Strdup should be followed by a free()... Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- parse-xml.c | 1 + 1 file changed, 1 insertion(+) diff --git a/parse-xml.c b/parse-xml.c index 9da1f3eba..633b44856 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -550,6 +550,7 @@ static void duration(char *buffer, void *_time) char *dot = strchr(mybuffer,'.'); *dot = ':'; sampletime(mybuffer, _time); + free(mybuffer); } else { sampletime(buffer, _time); } -- cgit v1.2.3-70-g09d2