From e569f82dd33ff0f7488e34bbb7e46d601c1ed672 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 18 Jan 2014 14:44:06 +0100 Subject: [PATCH] db/upnp: merge duplicate nullptr check --- src/db/upnp/ixmlwrap.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db/upnp/ixmlwrap.cxx b/src/db/upnp/ixmlwrap.cxx index 247c36d5d..2bc8658a3 100644 --- a/src/db/upnp/ixmlwrap.cxx +++ b/src/db/upnp/ixmlwrap.cxx @@ -34,10 +34,10 @@ getFirstElementValue(IXML_Document *doc, const char *name) ret = ixmlNode_getNodeValue(dnode); } } + + ixmlNodeList_free(nodes); } - if(nodes) - ixmlNodeList_free(nodes); return ret; }