Plug minor memory leak in dwc3 USB2/USB3 controller.

OF_getprop_alloc called earlier requires corresponding OF_prop_free to release allocated memory.

Submitted by:	kjopek@gmail.com
Differential Revision:	https://reviews.freebsd.org/D27085
This commit is contained in:
Emmanuel Vadot 2020-11-04 18:23:59 +00:00
parent 7b7921b47e
commit 03d0d84bf6

View file

@ -235,6 +235,7 @@ snps_dwc3_configure_phy(struct snps_dwc3_softc *sc)
DWC3_GUSB2PHYCFG0_USBTRDTIM(DWC3_GUSB2PHYCFG0_USBTRDTIM_8BITS);
}
DWC3_WRITE(sc, DWC3_GUSB2PHYCFG0, reg);
OF_prop_free(phy_type);
}
static void