diff mbox series

[v4,2/4] performance: destroy out queue on exit

Message ID 1513249216-2411-3-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [v4,1/4] performance: add AES tests to crypto performance tests | expand

Commit Message

Github ODP bot Dec. 14, 2017, 11 a.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 342 (lumag:openssl-ctx)
 ** https://github.com/Linaro/odp/pull/342
 ** Patch: https://github.com/Linaro/odp/pull/342.patch
 ** Base sha: 6b5cdc77eb9759a2349b10372a964648559bc92c
 ** Merge commit sha: 3f12a06ef07bd4cf8b6a4d8350ba06e75299b8f6
 **/
 test/performance/odp_crypto.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/test/performance/odp_crypto.c b/test/performance/odp_crypto.c
index 423be0956..b2625b3ca 100644
--- a/test/performance/odp_crypto.c
+++ b/test/performance/odp_crypto.c
@@ -904,6 +904,11 @@  int main(int argc, char *argv[])
 		}
 	}
 
+	if (out_queue != ODP_QUEUE_INVALID && odp_queue_destroy(out_queue)) {
+		app_err("Error: queue destroy\n");
+		exit(EXIT_FAILURE);
+	}
+
 	if (odp_pool_destroy(pool)) {
 		app_err("Error: pool destroy\n");
 		exit(EXIT_FAILURE);