projects
/
platform
/
core
/
security
/
yaca.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40c0aef
)
yaca_ctx_free: Cause exception on missing destructor.
05/65605/8
author
Mateusz Kulikowski
<m.kulikowski@samsung.com>
Mon, 11 Apr 2016 13:52:33 +0000
(15:52 +0200)
committer
Lukasz Pawelczyk
<l.pawelczyk@samsung.com>
Fri, 15 Apr 2016 12:11:30 +0000
(14:11 +0200)
ctx->ctx_destriy is mandatory for all contexts.
Add assert to verify that.
Change-Id: I1a1b5b5c7eb50eb5cea440ad74d410aeb2cdda59
Signed-off-by: Mateusz Kulikowski <m.kulikowski@samsung.com>
src/crypto.c
patch
|
blob
|
history
diff --git
a/src/crypto.c
b/src/crypto.c
index
a90d0d9
..
2ffb10c
100644
(file)
--- a/
src/crypto.c
+++ b/
src/crypto.c
@@
-116,6
+116,7
@@
API int yaca_ctx_get_param(const yaca_ctx_h ctx, yaca_ex_param_e param,
API void yaca_ctx_free(yaca_ctx_h ctx)
{
if (ctx != YACA_CTX_NULL) {
+ assert(ctx->ctx_destroy != NULL);
ctx->ctx_destroy(ctx);
yaca_free(ctx);
}