Skip to content

Commit 78ef7e8

Browse files
authored
Return missed return pmc; (openvinotoolkit#20118)
1 parent 7e709a0 commit 78ef7e8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/memory_tests/src/memory_tests_helper/memory_counter.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ namespace MemoryTest {
2929
pmc.cb = sizeof(PROCESS_MEMORY_COUNTERS);
3030
if (!GetProcessMemoryInfo(GetCurrentProcess(), &pmc, pmc.cb))
3131
throw std::runtime_error("Can't get system memory values");
32+
return pmc;
3233
}
3334

3435
size_t getVmSizeInKB() {

tests/stress_tests/common/utils.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ static PROCESS_MEMORY_COUNTERS getMemoryInfo() {
3939
pmc.cb = sizeof(PROCESS_MEMORY_COUNTERS);
4040
if (!GetProcessMemoryInfo(GetCurrentProcess(), &pmc, pmc.cb))
4141
throw std::runtime_error("Can't get system memory values");
42+
return pmc;
4243
}
4344

4445
size_t getVmSizeInKB() {

0 commit comments

Comments
 (0)