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
d5fd7516
Commit
d5fd7516
authored
Jul 16, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
free(NULL) is safe.
parent
6b057b5e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
src/misc/filter_chain.c
src/misc/filter_chain.c
+1
-2
src/text/filesystem.c
src/text/filesystem.c
+1
-2
No files found.
src/misc/filter_chain.c
View file @
d5fd7516
...
...
@@ -466,8 +466,7 @@ static int filter_chain_DeleteFilterInternal( filter_chain_t *p_chain,
vlc_object_release
(
p_filter
);
vlc_mouse_t
*
p_mouse
=
vlc_array_item_at_index
(
&
p_chain
->
mouses
,
i_filter_idx
);
if
(
p_mouse
)
free
(
p_mouse
);
free
(
p_mouse
);
vlc_array_remove
(
&
p_chain
->
mouses
,
i_filter_idx
);
/* FIXME: check fmt_in/fmt_out consitency */
...
...
src/text/filesystem.c
View file @
d5fd7516
...
...
@@ -339,8 +339,7 @@ int utf8_loaddir( DIR *dir, char ***namelist,
for
(
i
=
0
;
i
<
num
;
i
++
)
free
(
tab
[
i
]
);
if
(
tab
!=
NULL
)
free
(
tab
);
free
(
tab
);
}
}
return
-
1
;
...
...
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