[vlc-commits] Fix memory leak (cid #1049575)
Rémi Duraffort
git at videolan.org
Fri Jul 19 21:33:40 CEST 2013
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jul 19 21:16:41 2013 +0200| [8de5a5b76cbea91ecd8f072d1139559f8fd84c2e] | committer: Rémi Duraffort
Fix memory leak (cid #1049575)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8de5a5b76cbea91ecd8f072d1139559f8fd84c2e
---
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