Changeset 13340 in vbox for trunk/src/VBox/Devices/Storage/testcase/tstVD.cpp
- Timestamp:
- Oct 16, 2008 1:16:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/testcase/tstVD.cpp
r13295 r13340 635 635 if (VBOX_FAILURE(rc)) \ 636 636 { \ 637 if (pvBuf) \ 638 RTMemFree(pvBuf); \ 637 639 VDDestroy(pVD); \ 638 640 return rc; \ 639 641 } \ 640 642 } while (0) 643 644 void *pvBuf = RTMemAlloc(_1M); 641 645 642 646 /* Create error interface. */ … … 672 676 PSEGMENT paSegments = (PSEGMENT)RTMemAllocZ(sizeof(struct Segment) * (nSegments + 1)); 673 677 674 void *pvBuf = RTMemAlloc(_1M);675 676 678 RNDCTX ctx; 677 679 initializeRandomGenerator(&ctx, u32Seed); … … 692 694 693 695 VDDestroy(pVD); 696 if (pvBuf) 697 RTMemFree(pvBuf); 694 698 #undef CHECK 695 699 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.