VirtualBox

Opened 11 years ago

Closed 11 years ago

#11141 closed defect (fixed)

Memory leak in nrv2b.c

Reported by: marekzmyslowski Owned by:
Component: network Version: VirtualBox 4.2.4
Keywords: swd, memory leak Cc:
Guest type: other Host type: other

Description

The swd variable leaks memory at line 1105 in file VirtualBox-4.2.4\src\VBox\Devices\PC\Etherboot-src\util\nrv2b.c

1096	swd = (struct ucl_swd *) malloc(sizeof(*swd));
1097	if (!swd)
1098		return UCL_E_OUT_OF_MEMORY;
1099
1100	swd->f = F;
1101	swd->n = N;
1102	if (in_len >= 256 && in_len < swd->n)
1103		swd->n = in_len;
1104	if (swd->f < 8 || swd->n < 256)
1105		return UCL_E_INVALID_ARGUMENT;

Change History (1)

comment:1 by Frank Mehnert, 11 years ago

Resolution: fixed
Status: newclosed

Thanks for this report. That leak is not really important as this tool is only required during build time. Fixed anyway.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use