Index: uspace/drv/bus/usb/xhci/rh.c
===================================================================
--- uspace/drv/bus/usb/xhci/rh.c	(revision 9ee13a79bcd6db7099518b99c4303cd335870155)
+++ uspace/drv/bus/usb/xhci/rh.c	(revision d31705d6a49ff7dcfdaf679038705bc3182b8151)
@@ -77,5 +77,4 @@
    	/* Initialize slot_ctx according to section 4.3.3 point 3. */
 	/* Attaching to root hub port, root string equals to 0. */
-	// TODO: shouldn't these macros consider endianity?
 	XHCI_SLOT_ROOT_HUB_PORT_SET(ictx->slot_ctx, port);
 	XHCI_SLOT_CTX_ENTRIES_SET(ictx->slot_ctx, 1);
@@ -123,4 +122,7 @@
 		goto err_dctx;
 
+	xhci_free_command(cmd);
+	ictx = NULL;
+
 	return EOK;
 
