handle: allocate handle after domain lookup
authorDaniel Mack <daniel@zonque.org>
Mon, 20 Oct 2014 15:28:55 +0000 (17:28 +0200)
committerDaniel Mack <daniel@zonque.org>
Mon, 20 Oct 2014 15:30:56 +0000 (17:30 +0200)
commitd656d032532465340b540b9f9137b409446f18da
treedcb2f7340ace1e2791a106e4f373a520e000d5dc
parent772809606a30b700f5c8f6f394e82fc28624f360
handle: allocate handle after domain lookup

Just a small cleanup that orders memory allocation after the domain
has been looked up. That saves us an extra kfree() in the error path.

Signed-off-by: Daniel Mack <daniel@zonque.org>
handle.c