diff options
author | Anton Lundin <glance@acc.umu.se> | 2013-12-11 00:53:30 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-11 03:13:30 +0100 |
commit | d0c7b3bf7dd4c5514a1c73c64b3a5ab9f219e34d (patch) | |
tree | 0a8a0727cf44e976413ead25c9c895b07c6b6965 /parse-xml.c | |
parent | 01fdd2876a1b5d447fc08498f5b32f482dd9e716 (diff) | |
download | subsurface-d0c7b3bf7dd4c5514a1c73c64b3a5ab9f219e34d.tar.gz |
Plug memory leak in duration()
Strdup should be followed by a free()...
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |