diff options
Diffstat (limited to 'librecrypt_free_context.c')
| -rw-r--r-- | librecrypt_free_context.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/librecrypt_free_context.c b/librecrypt_free_context.c index 481282f..b2a62c9 100644 --- a/librecrypt_free_context.c +++ b/librecrypt_free_context.c @@ -6,6 +6,8 @@ void librecrypt_free_context(LIBRECRYPT_CONTEXT *ctx) { + if (!ctx) + return; librecrypt_wipe(ctx, sizeof(*ctx)); free(ctx); } @@ -14,15 +16,11 @@ librecrypt_free_context(LIBRECRYPT_CONTEXT *ctx) #else -int +CONST int main(void) { - SET_UP_ALARM(); - INIT_RESOURCE_TEST(); - - /* TODO test */ - - STOP_RESOURCE_TEST(); + /* Tested in other files */ + librecrypt_free_context(NULL); return 0; } |
