Fix usbhost/usbhost_hub.c:1339:3: error: 'free' called on pointer 'alloc' with nonzero offset 12 [-Werror=free-nonheap-object]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-10-23 23:30:16 +08:00 committed by Petro Karashchenko
parent 57b6447e0a
commit 00d78a51e4
1 changed files with 1 additions and 1 deletions

View File

@ -1336,7 +1336,7 @@ errout_with_ctrlreq:
kmm_free(priv->ctrlreq); kmm_free(priv->ctrlreq);
errout_with_hub: errout_with_hub:
kmm_free(priv); kmm_free(alloc);
return NULL; return NULL;
} }