Skip to content

Commit

Permalink
app/test-crypto-perf: fix memory leak
Browse files Browse the repository at this point in the history
data is allocated but never freed.

Fixes: f8be178 ("app/crypto-perf: introduce performance test application")
Cc: [email protected]

Signed-off-by: Olivier Matz <[email protected]>
Acked-by: Pablo de Lara <[email protected]>
  • Loading branch information
olivier-matz-6wind authored and Ferruh Yigit committed Oct 6, 2017
1 parent 0e98531 commit 0afa5e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/test-crypto-perf/cperf_test_verify.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ cperf_verify_op(struct rte_crypto_op *op,
options->digest_sz);
}

rte_free(data);
return !!res;
}

Expand Down

0 comments on commit 0afa5e3

Please sign in to comment.