Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147700391
D25987.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
620 B
Referenced Files
None
Subscribers
None
D25987.diff
View Options
Index: head/sys/cam/mmc/mmc_da.c
===================================================================
--- head/sys/cam/mmc/mmc_da.c
+++ head/sys/cam/mmc/mmc_da.c
@@ -789,7 +789,6 @@
softc = (struct sdda_softc *)malloc(sizeof(*softc), M_DEVBUF,
M_NOWAIT|M_ZERO);
-
if (softc == NULL) {
printf("sddaregister: Unable to probe new device. "
"Unable to allocate softc\n");
@@ -802,6 +801,7 @@
if (softc->mmcdata == NULL) {
printf("sddaregister: Unable to probe new device. "
"Unable to allocate mmcdata\n");
+ free(softc, M_DEVBUF);
return (CAM_REQ_CMP_ERR);
}
periph->softc = softc;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 14, 1:05 AM (34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29644692
Default Alt Text
D25987.diff (620 B)
Attached To
Mode
D25987: Fix memory leak in sddaregister().
Attached
Detach File
Event Timeline
Log In to Comment