Home
last modified time | relevance | path

Searched refs:SAFE_FREE (Results 1 – 25 of 37) sorted by relevance

12

/external/ltp/testcases/misc/math/float/
Dthread_code.c28 #define SAFE_FREE(p) { if (p) { free(p); (p)=NULL; } } macro
91 SAFE_FREE(buffer); in read_file()
106 SAFE_FREE(buffer); in read_file()
291 SAFE_FREE(din); in thread_code()
301 SAFE_FREE(din); in thread_code()
302 SAFE_FREE(dex); in thread_code()
321 SAFE_FREE(din); in thread_code()
322 SAFE_FREE(dex); in thread_code()
353 SAFE_FREE(din); in thread_code()
354 SAFE_FREE(dex); in thread_code()
[all …]
Dmain.c30 #define SAFE_FREE(p) { if (p) { free(p); (p)=NULL; } } macro
175 SAFE_FREE(bin_path); in main()
299 SAFE_FREE(pcom); in main()
302 SAFE_FREE(tabcom); in main()
303 SAFE_FREE(threads); in main()
/external/epid-sdk/epid/common/math/src/
Dfinitefield.c157 SAFE_FREE(finitefield_ptr); in NewFiniteField()
158 SAFE_FREE(prime_bn); in NewFiniteField()
159 SAFE_FREE(ipp_finitefield_ctx); in NewFiniteField()
265 SAFE_FREE(ff_elem_str); in NewFiniteFieldViaBinomalExtension()
268 SAFE_FREE(finitefield_ptr); in NewFiniteFieldViaBinomalExtension()
269 SAFE_FREE(modulus_0); in NewFiniteFieldViaBinomalExtension()
270 SAFE_FREE(ipp_finitefield_ctx); in NewFiniteFieldViaBinomalExtension()
389 SAFE_FREE(ff_elems); in NewFiniteFieldViaPolynomialExtension()
390 SAFE_FREE(ff_elems_state); in NewFiniteFieldViaPolynomialExtension()
393 SAFE_FREE(finitefield_ptr); in NewFiniteFieldViaPolynomialExtension()
[all …]
Decgroup.c161 SAFE_FREE(state); in NewEcGroup()
162 SAFE_FREE(scratch_buffer); in NewEcGroup()
163 SAFE_FREE(grp); in NewEcGroup()
173 SAFE_FREE((*g)->ipp_ec); in DeleteEcGroup()
177 SAFE_FREE((*g)->scratch_buffer); in DeleteEcGroup()
180 SAFE_FREE(*g); in DeleteEcGroup()
238 SAFE_FREE(ec_pt_context); in NewEcPoint()
239 SAFE_FREE(ecpoint); in NewEcPoint()
247 SAFE_FREE((*p)->ipp_ec_pt); in DeleteEcPoint()
249 SAFE_FREE(*p); in DeleteEcPoint()
[all …]
Decdsa_verify.c179 SAFE_FREE(ec_state); in NewSecp256r1Curve()
188 SAFE_FREE(*ec); in DeleteSecp256r1Curve()
219 SAFE_FREE(point); in NewCurvePoint()
227 SAFE_FREE(*p); in DeleteCurvePoint()
Dbignum.c80 SAFE_FREE(ipp_bn_ctx); in NewBigNum()
81 SAFE_FREE(bn); in NewBigNum()
89 SAFE_FREE((*bignum)->ipp_bn); in DeleteBigNum()
91 SAFE_FREE(*bignum); in DeleteBigNum()
Decdsa_sign.c201 SAFE_FREE(ec_ctx); in EcdsaSignBuffer()
202 SAFE_FREE(ecp_eph_public); in EcdsaSignBuffer()
/external/ltp/testcases/kernel/sched/cfs-scheduler/
Dhackbench.c62 #define SAFE_FREE(p) { if (p) { free(p); (p)=NULL; } } macro
367 SAFE_FREE(rev_ctx_tab[i * num_fds + j]) in main()
369 SAFE_FREE(snd_ctx_tab[i]); in main()
371 SAFE_FREE(pth_tab); in main()
372 SAFE_FREE(snd_ctx_tab); in main()
373 SAFE_FREE(rev_ctx_tab); in main()
/external/ltp/testcases/kernel/sched/tool/
Dtrace_sched.c91 #define SAFE_FREE(p) { if (p) { free(p); (p)=NULL; } } macro
434 SAFE_FREE(args_table[thrd_ndx]); in main()
435 SAFE_FREE(status_table[thrd_ndx]); in main()
447 SAFE_FREE(args_table); in main()
448 SAFE_FREE(status_table); in main()
/external/epid-sdk/epid/member/src/
Dallowed_basenames.c89 SAFE_FREE(newnode); in AllowBasename()
112 SAFE_FREE(deletenode); in DeleteBasenames()
115 SAFE_FREE(*basename_container); in DeleteBasenames()
Dcontext.c178 SAFE_FREE(member_ctx); in EpidMemberCreate()
218 SAFE_FREE(*ctx); in EpidMemberDelete()
Dnrprove_commitment.c109 SAFE_FREE(commit_values); in HashNrProveCommitment()
Dnrprove.c271 SAFE_FREE(s2); in EpidNrProve()
290 SAFE_FREE(digest); in EpidNrProve()
/external/epid-sdk/epid/verifier/src/
Dcontext.c201 SAFE_FREE(verifier_ctx); in EpidVerifierCreate()
217 SAFE_FREE((*ctx)->verifier_rl); in EpidVerifierDelete()
219 SAFE_FREE((*ctx)->basename); in EpidVerifierDelete()
221 SAFE_FREE(*ctx); in EpidVerifierDelete()
389 SAFE_FREE(ctx->verifier_rl); in EpidVerifierSetVerifierRl()
504 if (kEpidNoErr != result) SAFE_FREE(ver_rl); in EpidBlacklistSig()
548 SAFE_FREE(ctx->basename); in EpidVerifierSetBasename()
575 SAFE_FREE(ctx->verifier_rl); in EpidVerifierSetBasename()
579 SAFE_FREE(ctx->basename); in EpidVerifierSetBasename()
590 SAFE_FREE(basename_buffer); in EpidVerifierSetBasename()
/external/epid-sdk/epid/common/src/
Dmemory.h87 #if !defined(SAFE_FREE)
89 #define SAFE_FREE(ptr) \ macro
Dgrouppubkey.c73 SAFE_FREE(pubkey); in CreateGroupPubKey()
84 SAFE_FREE(*pub_key); in DeleteGroupPubKey()
Dstack.c92 SAFE_FREE((*stack)->buf); in DeleteStack()
93 SAFE_FREE(*stack); in DeleteStack()
Dcommitment.c120 SAFE_FREE(t3mconcat_buf); in CalculateCommitmentHash()
/external/epid-sdk/epid/verifier/1.1/src/
Dcontext.c173 SAFE_FREE(verifier_ctx); in Epid11VerifierCreate()
189 SAFE_FREE((*ctx)->basename); in Epid11VerifierDelete()
191 SAFE_FREE(*ctx); in Epid11VerifierDelete()
315 SAFE_FREE(ctx->basename); in Epid11VerifierSetBasename()
350 SAFE_FREE(ctx->basename); in Epid11VerifierSetBasename()
359 SAFE_FREE(basename_buffer); in Epid11VerifierSetBasename()
/external/epid-sdk/epid/common/1.1/src/
Dgrouppubkey.c69 SAFE_FREE(pubkey); in CreateEpid11GroupPubKey()
80 SAFE_FREE(*pub_key); in DeleteEpid11GroupPubKey()
/external/epid-sdk/epid/common-testhelper/
Doctstr-testhelper.cc33 SAFE_FREE(*bn); in delete_BigNum()
91 SAFE_FREE(ipp_bn_ctx); in create_BigNum()
/external/epid-sdk/epid/member/tpm2/src/
Dcontext.c99 SAFE_FREE((*ctx)->nv->data); in Tpm2DeleteContext()
102 SAFE_FREE(*ctx); in Tpm2DeleteContext()
/external/e2fsprogs/lib/ext2fs/
Dtdb.c157 #ifndef SAFE_FREE
158 #define SAFE_FREE(x) do { if ((x) != NULL) {free(x); (x)=NULL;} } while(0) macro
573 SAFE_FREE(tdb->lockrecs); in tdb_unlock()
1155 SAFE_FREE(buf); in tdb_alloc_read()
1632 SAFE_FREE(tdb->transaction); in tdb_transaction_start()
1684 SAFE_FREE(tdb->transaction->hash_heads); in tdb_transaction_start()
1685 SAFE_FREE(tdb->transaction); in tdb_transaction_start()
1731 SAFE_FREE(tdb->lockrecs); in tdb_transaction_cancel()
1739 SAFE_FREE(tdb->transaction->hash_heads); in tdb_transaction_cancel()
1740 SAFE_FREE(tdb->transaction); in tdb_transaction_cancel()
[all …]
/external/ltp/testcases/kernel/ipc/pipeio/
Dpipeio.c61 #define SAFE_FREE(p) { if (p) { free(p); (p)=NULL; } } macro
488 SAFE_FREE(writebuf); in cleanup()
489 SAFE_FREE(readbuf); in cleanup()
/external/epid-sdk/epid/member/tpm2/ibm_tss/
Dcontext.c117 SAFE_FREE(*ctx); in Tpm2DeleteContext()

12