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
badb8277
Commit
badb8277
authored
Jul 05, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log: fix double free() bug during shutdown
Don't free an internal configuration value in log_init(). Call config_get_path() instead of manually calling parsePath().
parent
15d4c841
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
NEWS
NEWS
+1
-0
log.c
src/log.c
+2
-6
No files found.
NEWS
View file @
badb8277
...
...
@@ -2,6 +2,7 @@ ver 0.15.1 (2009/??/??)
* commands:
- don't resume playback when stopping during pause
* database: fixed NULL pointer dereference after charset change
* log: fix double free() bug during shutdown
ver 0.15 (2009/06/23)
...
...
src/log.c
View file @
badb8277
...
...
@@ -259,12 +259,8 @@ void log_init(bool verbose, bool use_stdout)
log_init_syslog
();
#endif
}
else
{
char
*
path
=
parsePath
(
param
->
value
);
g_free
(
param
->
value
);
if
(
path
==
NULL
)
g_error
(
"error parsing
\"
%s
\"
at line %i
\n
"
,
CONF_LOG_FILE
,
param
->
line
);
const
char
*
path
=
config_get_path
(
CONF_LOG_FILE
);
assert
(
path
!=
NULL
);
log_init_file
(
path
,
param
->
line
);
}
...
...
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