Don't take reference count based on if result
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 12 Nov 2010 22:24:08 +0000 (07:24 +0900)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 12 Nov 2010 22:24:08 +0000 (07:24 +0900)
commit53ea3e8733d34ebd3477f36c4b4265934b981e7d
tree9a514ea34aa6589ac4bafa69f17bbe31ed8228f2
parent79559685282bb14a78ae0a3b75af637e519cfee9
Don't take reference count based on if result

To make the code more readable turn the failure into a clear error case
and only take the reference count later in the code flow.
plugins/portal.c