Changeset 18860 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Apr 10, 2009 9:06:05 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/IOM.cpp
r17332 r18860 1388 1388 1389 1389 /* 1390 * For the 2nd+ instance, mangle the description string so it's unique. 1391 * (PGM requires this.) 1392 */ 1393 if (pDevIns->iInstance > 0) 1394 { 1395 pszDesc = MMR3HeapAPrintf(pVM, MM_TAG_IOM, "%s [%u]", pszDesc, pDevIns->iInstance); 1396 if (!pszDesc) 1397 return VERR_NO_MEMORY; 1398 } 1399 1400 1401 /* 1390 1402 * Allocate new range record and initialize it. 1391 1403 */ … … 1430 1442 return VINF_SUCCESS; 1431 1443 1444 /* bail out */ 1432 1445 DBGFR3Info(pVM, "mmio", NULL, NULL); 1433 1446 AssertMsgFailed(("This cannot happen!\n")); … … 1436 1449 MMHyperFree(pVM, pRange); 1437 1450 } 1438 1451 if (pDevIns->iInstance > 0) 1452 MMR3HeapFree((void *)pszDesc); 1439 1453 return rc; 1440 1454 } … … 1614 1628 /* advance and free. */ 1615 1629 GCPhys = pRange->Core.KeyLast + 1; 1630 if (pDevIns->iInstance > 0) 1631 MMR3HeapFree((void *)pRange->pszDesc); 1616 1632 MMHyperFree(pVM, pRange); 1617 1633 }
Note:
See TracChangeset
for help on using the changeset viewer.