Skip to content

Commit 6df819b

Browse files
committed
exit cleanup
1 parent 9baad60 commit 6df819b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/testInfoLoggerPerf.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ int main(int argc, char* argv[])
8989
double t = theTimer.getTime();
9090
printf("Done in %lf seconds\n", t);
9191
printf("%.2lf msg/s\n", maxMsgCount / t);
92-
92+
if (msgBuffer != nullptr) {
93+
free(msgBuffer);
94+
}
95+
9396
return 0;
9497
}

0 commit comments

Comments
 (0)