Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
e44f3139
Commit
e44f3139
authored
Aug 14, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: free empty path string (memleak)
When you pass an empty string to directory_update_init(), it was not freed by update_task().
parent
f4b39bc2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
NEWS
NEWS
+1
-0
update.c
src/update.c
+2
-1
No files found.
NEWS
View file @
e44f3139
...
...
@@ -5,6 +5,7 @@ ver 0.15.2 (2009/??/??)
* decoders:
- mad: skip ID3 frames when libid3tag is disabled
- flac: parse all replaygain tags
* update: free empty path string (memleak)
ver 0.15.1 (2009/07/15)
...
...
src/update.c
View file @
e44f3139
...
...
@@ -767,7 +767,6 @@ static void * update_task(void *_path)
{
if
(
_path
!=
NULL
&&
!
isRootDirectory
(
_path
))
{
updatePath
((
char
*
)
_path
);
g_free
(
_path
);
}
else
{
struct
directory
*
directory
=
db_get_root
();
struct
stat
st
;
...
...
@@ -776,6 +775,8 @@ static void * update_task(void *_path)
updateDirectory
(
directory
,
&
st
);
}
g_free
(
_path
);
if
(
modified
||
!
db_exists
())
db_save
();
...
...
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