diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-06-25 17:49:56 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-06-25 17:49:56 -0400 |
| commit | 2ce82eea5c7d5e05a3e3d220c19bbdac830e7dba (patch) | |
| tree | d9b448134b8f63743e0c70eb74c71ac899a59caa /test | |
| parent | 7c7b8dd41be35ec1c540356e039ef3692fc07732 (diff) | |
pkmem: handle overflows & leaks in tests
Diffstat (limited to 'test')
| -rw-r--r-- | test/pkev.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/pkev.cpp b/test/pkev.cpp index 30ccbb0..f8b370b 100644 --- a/test/pkev.cpp +++ b/test/pkev.cpp @@ -141,6 +141,7 @@ int main(int argc, char *argv[]) d->ev = evs; d->i = i; pk_ev_emit(evs[i].evmgr, evs[i].evid, d); + delete d; } bool any_false = false; @@ -173,6 +174,7 @@ int main(int argc, char *argv[]) d->i = i; d->ev = &evs[0]; pk_ev_emit(evs[i].evmgr, evs[i].evid, d); + delete d; } bool any_false = false; |
