Skip to content

Commit

Permalink
fix scan_build NULL error
Browse files Browse the repository at this point in the history
  • Loading branch information
ducnguyen-sb committed Nov 1, 2023
1 parent 9fbb5c3 commit 2dab954
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_sig_stfl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1079,8 +1079,12 @@ int main(int argc, char **argv) {
rc_query = td_query.rc;

err:
pthread_mutex_destroy(test_sk_lock);
pthread_mutex_destroy(sk_lock);
if (test_sk_lock) {
pthread_mutex_destroy(test_sk_lock);
}
if (sk_lock) {
pthread_mutex_destroy(sk_lock);
}
#else
rc = sig_stfl_test_correctness(alg_name, katfile);
rc1 = sig_stfl_test_secret_key(alg_name, katfile);
Expand Down

0 comments on commit 2dab954

Please sign in to comment.