mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
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:
committed by
Petro Karashchenko
parent
57b6447e0a
commit
00d78a51e4
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user