Skip to content

Commit

Permalink
Add deinit for expeted and actual results
Browse files Browse the repository at this point in the history
Signed-off-by: ERMAN GURSES <[email protected]>
  • Loading branch information
erman-gurses committed Aug 14, 2024
1 parent 64dc0dc commit cc2c883
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/testing/e2e/iree-e2e-attention-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include "iree/base/api.h"
#include "iree/base/internal/cpu.h"
Expand Down Expand Up @@ -278,6 +277,9 @@ static void attention_results_deinitialize(attention_results_t* results) {
iree_allocator_free(results->host_allocator, results->query_contents.data);
iree_allocator_free(results->host_allocator, results->key_contents.data);
iree_allocator_free(results->host_allocator, results->value_contents.data);
iree_allocator_free(results->host_allocator, results->actual_contents.data);
iree_allocator_free(results->host_allocator, results->expected_contents.data);

IREE_TRACE_ZONE_END(z0);
}

Expand Down

0 comments on commit cc2c883

Please sign in to comment.