Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC
Commits
9a55abf4
Commit
9a55abf4
authored
Jun 06, 2020
by
Rémi Denis-Courmont
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mjpeg: fix leak
parent
9e829b57
Pipeline
#18512
failed with stages
in 19 minutes and 54 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/demux/mjpeg.c
modules/demux/mjpeg.c
+4
-4
No files found.
modules/demux/mjpeg.c
View file @
9a55abf4
...
...
@@ -151,7 +151,7 @@ static char* GetLine( demux_t *p_demux, int *p_pos )
{
i
--
;
}
p_line
=
malloc
(
i
+
1
);
p_line
=
vlc_obj_malloc
(
p_demux
,
i
+
1
);
if
(
unlikely
(
p_line
==
NULL
)
)
return
NULL
;
strncpy
(
p_line
,
(
char
*
)
p_buf
,
i
);
...
...
@@ -214,7 +214,7 @@ static bool CheckMimeHeader( demux_t *p_demux, int *p_header_size )
msg_Warn
(
p_demux
,
"separator %s does not match %s"
,
psz_line
,
p_sys
->
psz_separator
);
}
free
(
psz_line
);
vlc_obj_free
(
p_demux
,
psz_line
);
}
}
...
...
@@ -239,7 +239,7 @@ static bool CheckMimeHeader( demux_t *p_demux, int *p_header_size )
{
msg_Dbg
(
p_demux
,
"discard MIME header: %s"
,
psz_line
);
}
free
(
psz_line
);
vlc_obj_free
(
p_demux
,
psz_line
);
psz_line
=
GetLine
(
p_demux
,
&
i_pos
);
}
...
...
@@ -249,7 +249,7 @@ static bool CheckMimeHeader( demux_t *p_demux, int *p_header_size )
return
false
;
}
free
(
psz_line
);
vlc_obj_free
(
p_demux
,
psz_line
);
*
p_header_size
=
i_pos
;
return
b_jpeg
;
...
...
Steve Lhomme
@robUx4
mentioned in commit
78c5634a
·
Jun 08, 2020
mentioned in commit
78c5634a
mentioned in commit 78c5634afa7587a4e22b27e6cdf6050bcd667f6c
Toggle commit list
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