Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
100
Issues
100
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
d08eba96
Commit
d08eba96
authored
Jul 06, 2018
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Fixed report XML related memory leaks
parent
c02f34e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
cfgfile.c
src/cfgfile.c
+1
-0
reportxml.c
src/reportxml.c
+6
-0
No files found.
src/cfgfile.c
View file @
d08eba96
...
...
@@ -2150,6 +2150,7 @@ static void _parse_paths(xmlDocPtr doc,
ICECAST_LOG_ERROR
(
"Can not parse report xml database
\"
%H
\"
"
,
temp
);
}
else
{
reportxml_database_add_report
(
configuration
->
reportxml_db
,
report
);
refobject_unref
(
report
);
ICECAST_LOG_INFO
(
"File
\"
%H
\"
added to report xml database"
,
temp
);
}
}
...
...
src/reportxml.c
View file @
d08eba96
...
...
@@ -458,9 +458,11 @@ reportxml_node_t * reportxml_node_parse_xmlnode(xmlNodePtr xmlnode)
}
if
(
reportxml_node_add_child
(
node
,
child
)
!=
0
)
{
refobject_unref
(
child
);
refobject_unref
(
node
);
return
NULL
;
}
refobject_unref
(
child
);
}
}
while
((
cur
=
cur
->
next
));
}
...
...
@@ -522,6 +524,8 @@ static reportxml_node_t * __reportxml_node_copy_with_db(reportxml_node_t *n
refobject_unref
(
ret
);
return
NULL
;
}
refobject_unref
(
copy
);
}
}
...
...
@@ -959,6 +963,8 @@ int reportxml_database_add_report(reportxml_database_t *db,
thread_mutex_unlock
(
&
(
db
->
lock
));
refobject_unref
(
root
);
return
0
;
}
...
...
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