Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
863f246a
Commit
863f246a
authored
Jan 07, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* net: mem leak in net_Printf
parent
9841276f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/misc/net.c
src/misc/net.c
+6
-3
No files found.
src/misc/net.c
View file @
863f246a
...
...
@@ -2,7 +2,7 @@
* net.c:
*****************************************************************************
* Copyright (C) 2004 VideoLAN
* $Id: net.c,v 1.
2 2004/01/06 23:03:17
fenrir Exp $
* $Id: net.c,v 1.
3 2004/01/07 14:59:03
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@videolan.org>
*
...
...
@@ -320,7 +320,7 @@ int net_Printf( vlc_object_t *p_this, int fd, char *psz_fmt, ... )
{
va_list
args
;
char
*
psz
;
int
i_size
;
int
i_size
,
i_ret
;
va_start
(
args
,
psz_fmt
);
psz
=
vsprintf_m
(
psz_fmt
,
args
);
...
...
@@ -328,7 +328,10 @@ int net_Printf( vlc_object_t *p_this, int fd, char *psz_fmt, ... )
i_size
=
strlen
(
psz
);
return
__net_Write
(
p_this
,
fd
,
psz
,
i_size
)
<
i_size
?
-
1
:
i_size
;
i_ret
=
__net_Write
(
p_this
,
fd
,
psz
,
i_size
)
<
i_size
?
-
1
:
i_size
;
free
(
psz
);
return
i_ret
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment