[vlc-commits] Fix memory leak (cid #1049575)
Rémi Duraffort
git at videolan.org
Sat Jul 20 11:52:39 CEST 2013
vlc/vlc-2.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jul 19 21:16:41 2013 +0200| [4b5c414e586933ea31af5e5b21147ec95aed6ddb] | committer: Jean-Baptiste Kempf
Fix memory leak (cid #1049575)
(cherry picked from commit 8de5a5b76cbea91ecd8f072d1139559f8fd84c2e)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=4b5c414e586933ea31af5e5b21147ec95aed6ddb
---
src/text/strings.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/text/strings.c b/src/text/strings.c
index d7db759..7d5651e 100644
--- a/src/text/strings.c
+++ b/src/text/strings.c
@@ -492,6 +492,7 @@ char *str_format_time( const char *tformat )
char *ret = realloc (str, len + 1);
return ret ? ret : str; /* <- this cannot fail */
}
+ free (str);
}
assert (0);
}
More information about the vlc-commits
mailing list