[vlc-devel] commit: Fix potential memleak (CID 196) (Derk-Jan Hartman )
git version control
git at videolan.org
Thu Oct 9 02:45:35 CEST 2008
vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Thu Oct 9 02:44:14 2008 +0200| [976d4237573d81364722c9b511d0a3dc688ba477] | committer: Derk-Jan Hartman
Fix potential memleak (CID 196)
w00t, my first CID fix :D
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=976d4237573d81364722c9b511d0a3dc688ba477
---
src/input/input.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/input/input.c b/src/input/input.c
index 5c63147..81bda27 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -257,7 +257,7 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
psz_parser = val.psz_string;
while( (psz_start = strchr( psz_parser, '{' ) ) )
{
- seekpoint_t *p_seekpoint = vlc_seekpoint_New();
+ seekpoint_t *p_seekpoint;
char backup;
psz_start++;
psz_end = strchr( psz_start, '}' );
@@ -266,6 +266,8 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
backup = *psz_parser;
*psz_parser = 0;
*psz_end = ',';
+
+ p_seekpoint = vlc_seekpoint_New();
while( (psz_end = strchr( psz_start, ',' ) ) )
{
*psz_end = 0;
More information about the vlc-devel
mailing list