[libxslt] Fix unreachable code in xsltAddChild
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Fix unreachable code in xsltAddChild
- Date: Wed, 13 Jul 2016 11:19:49 +0000 (UTC)
commit ca99e1d41f970d8499b3cb0faf36282c064cabfa
Author: mahendra.n <mahendra n samsung com>
Date: Wed Jul 13 13:04:47 2016 +0200
Fix unreachable code in xsltAddChild
Might also fix a memory leak in error cases.
Fixes bug #760113:
https://bugzilla.gnome.org/show_bug.cgi?id=760113
libxslt/transform.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libxslt/transform.c b/libxslt/transform.c
index cd93bd0..b3fce80 100644
--- a/libxslt/transform.c
+++ b/libxslt/transform.c
@@ -785,7 +785,7 @@ static xmlNodePtr
xsltAddChild(xmlNodePtr parent, xmlNodePtr cur) {
xmlNodePtr ret;
- if ((cur == NULL) || (parent == NULL))
+ if (cur == NULL)
return(NULL);
if (parent == NULL) {
xmlFreeNode(cur);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]