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
8ae5bc4d
Commit
8ae5bc4d
authored
Oct 16, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: fixed memory leak during container scan
The return value of map_directory_child_fs() must be freed.
parent
d1ba27d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
NEWS
NEWS
+1
-0
update.c
src/update.c
+6
-3
No files found.
NEWS
View file @
8ae5bc4d
...
...
@@ -6,6 +6,7 @@ ver 0.15.5 (2009/??/??)
- riff, aiff: fixed "limited range" gcc warning
* decoder_thread: change the fallback decoder name to "mad"
* output_thread: check again if output is open on CANCEL
* update: fixed memory leak during container scan
ver 0.15.4 (2009/10/03)
...
...
src/update.c
View file @
8ae5bc4d
...
...
@@ -459,17 +459,20 @@ update_container_file( struct directory* directory,
while
((
vtrack
=
plugin
->
container_scan
(
pathname
,
++
tnum
))
!=
NULL
)
{
struct
song
*
song
=
song_file_new
(
vtrack
,
contdir
);
char
*
child_path_fs
;
// shouldn't be necessary but it's there..
song
->
mtime
=
st
->
st_mtime
;
song
->
tag
=
plugin
->
tag_dup
(
map_directory_child_fs
(
contdir
,
vtrack
));
child_path_fs
=
map_directory_child_fs
(
contdir
,
vtrack
);
g_free
(
vtrack
);
song
->
tag
=
plugin
->
tag_dup
(
child_path_fs
);
g_free
(
child_path_fs
);
songvec_add
(
&
contdir
->
songs
,
song
);
modified
=
true
;
g_free
(
vtrack
);
}
g_free
(
pathname
);
...
...
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