Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
f0f97b4e
Commit
f0f97b4e
authored
May 05, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix leaking of psz_object_name
parent
aab3bb4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
src/modules/cache.c
src/modules/cache.c
+1
-0
src/modules/modules.c
src/modules/modules.c
+0
-1
No files found.
src/modules/cache.c
View file @
f0f97b4e
...
...
@@ -265,6 +265,7 @@ void CacheLoad( vlc_object_t *p_this )
pp_cache
[
i
]
->
p_module
=
vlc_module_create
(
p_this
);
/* Load additional infos */
free
(
pp_cache
[
i
]
->
p_module
->
psz_object_name
);
LOAD_STRING
(
pp_cache
[
i
]
->
p_module
->
psz_object_name
);
LOAD_STRING
(
pp_cache
[
i
]
->
p_module
->
psz_shortname
);
LOAD_STRING
(
pp_cache
[
i
]
->
p_module
->
psz_longname
);
...
...
src/modules/modules.c
View file @
f0f97b4e
...
...
@@ -1312,7 +1312,6 @@ static void DupModule( module_t *p_module )
/* We strdup() these entries so that they are still valid when the
* module is unloaded. */
p_module
->
psz_object_name
=
strdup
(
p_module
->
psz_object_name
);
p_module
->
psz_capability
=
strdup
(
p_module
->
psz_capability
);
p_module
->
psz_shortname
=
p_module
->
psz_shortname
?
strdup
(
p_module
->
psz_shortname
)
:
NULL
;
...
...
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