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
5d6f7803
Commit
5d6f7803
authored
Aug 14, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: free temporary string in container scan (memleak)
The return value of map_directory_child_fs() must be freed.
parent
1c4f407a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
NEWS
NEWS
+1
-0
update.c
src/update.c
+6
-2
No files found.
NEWS
View file @
5d6f7803
...
...
@@ -7,6 +7,7 @@ ver 0.15.2 (2009/??/??)
- flac: parse all replaygain tags
- flac: don't allocate cuesheet twice (memleak)
* update: free empty path string (memleak)
* update: free temporary string in container scan (memleak)
ver 0.15.1 (2009/07/15)
...
...
src/update.c
View file @
5d6f7803
...
...
@@ -430,7 +430,7 @@ update_container_file( struct directory* directory,
{
char
*
vtrack
=
NULL
;
unsigned
int
tnum
=
0
;
c
onst
c
har
*
pathname
=
map_directory_child_fs
(
directory
,
name
);
char
*
pathname
=
map_directory_child_fs
(
directory
,
name
);
struct
directory
*
contdir
=
dirvec_find
(
&
directory
->
children
,
name
);
// directory exists already
...
...
@@ -446,9 +446,11 @@ update_container_file( struct directory* directory,
modified
=
true
;
}
else
else
{
g_free
(
pathname
);
return
true
;
}
}
contdir
=
make_subdir
(
directory
,
name
);
contdir
->
mtime
=
st
->
st_mtime
;
...
...
@@ -473,6 +475,8 @@ update_container_file( struct directory* directory,
g_free
(
vtrack
);
}
g_free
(
pathname
);
if
(
tnum
==
1
)
{
delete_directory
(
contdir
);
...
...
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