Fix memory leaks by adding missing destroy calls for
events, streams, and graphs at the end of tests.
Ensure that every test case executes destroy calls,
regardless of whether it passes or fails.
Change-Id: I814e35c528d90ed2abb34d77377f1a7fd3f1f11c
[ROCm/hip-tests commit: 9cffda4ebb]
In test hipGraphPerf.cc. Using variable length arrays can raise an error
if -Wvla-cxx-extension is enabled.
Change-Id: I66542885b115c53b90348dba1964ffd1b0f3bd9a
[ROCm/hip-tests commit: 5546c951b8]