Skip to content

Commit f22d61e

Browse files
committed
MbufRedirectCache: Fix ASan alloc-dealloc-mismatch
Related: #1168
1 parent 10e1d19 commit f22d61e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stx/astf/trex_astf_mbuf_redirect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ MbufRedirectCache::~MbufRedirectCache() {
9797
for (int i = 0; i < m_num_dp_cores; i++) {
9898
delete m_cache[i];
9999
}
100-
delete m_cache;
100+
delete[] m_cache;
101101

102102
if (m_timer) {
103103
if (m_timer->is_running()) {

0 commit comments

Comments
 (0)