Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
e0c7dbab
Commit
e0c7dbab
authored
Jan 18, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* http: fixed mem leaks, doesn't add '\0' anymore at the end of files.
parent
bccdae12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
modules/control/http.c
modules/control/http.c
+8
-3
No files found.
modules/control/http.c
View file @
e0c7dbab
...
...
@@ -2,7 +2,7 @@
* http.c : http mini-server ;)
*****************************************************************************
* Copyright (C) 2001-2004 VideoLAN
* $Id: http.c,v 1.4
8 2004/01/17 16:51:54 gbazin
Exp $
* $Id: http.c,v 1.4
9 2004/01/18 07:35:31 fenrir
Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Laurent Aimar <fenrir@via.ecp.fr>
...
...
@@ -1026,6 +1026,10 @@ static mvar_t *mvar_HttpdInfoSetNew( char *name, httpd_t *p_httpd, int i_type )
free
(
info
.
info
[
i
].
psz_name
);
free
(
info
.
info
[
i
].
psz_value
);
}
if
(
info
.
i_count
>
0
)
{
free
(
info
.
info
);
}
return
s
;
}
...
...
@@ -2286,7 +2290,7 @@ static int http_get( httpd_file_callback_args_t *p_args,
p
+=
sprintf
(
p
,
"</body>
\n
"
);
p
+=
sprintf
(
p
,
"</html>
\n
"
);
*
pi_data
=
strlen
(
*
pp_data
)
+
1
;
*
pi_data
=
strlen
(
*
pp_data
);
return
VLC_SUCCESS
;
}
...
...
@@ -2364,11 +2368,12 @@ static int http_get( httpd_file_callback_args_t *p_args,
/* we parse executing all <vlc /> macros */
Execute
(
p_args
,
p_request
,
i_request
,
pp_data
,
pi_data
,
&
dst
,
&
p_buffer
[
0
],
&
p_buffer
[
i_buffer
]
);
*
dst
++
=
'\0'
;
*
dst
=
'\0'
;
*
pi_data
=
dst
-
*
pp_data
;
SSClean
(
&
p_args
->
stack
);
mvar_Delete
(
p_args
->
vars
);
free
(
p_buffer
);
}
fclose
(
f
);
...
...
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