MCPcopy Create free account
hub / github.com/capstone-engine/capstone / cs_free

Function cs_free

cs.c:1073–1083  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1071
1072CAPSTONE_EXPORT
1073void CAPSTONE_API cs_free(cs_insn *insn, size_t count)
1074{
1075 size_t i;
1076
1077 // free all detail pointers
1078 for (i = 0; i < count; i++)
1079 cs_mem_free(insn[i].detail);
1080
1081 // then free pointer to cs_insn array
1082 cs_mem_free(insn);
1083}
1084
1085CAPSTONE_EXPORT
1086cs_insn * CAPSTONE_API cs_malloc(csh ud)

Callers 15

mainFunction · 0.85
testFunction · 0.85
test_single_MCFunction · 0.85
test_single_issueFunction · 0.85
test_invalidsFunction · 0.85
test_validsFunction · 0.85
LLVMFuzzerTestOneInputFunction · 0.85
LLVMFuzzerTestOneInputFunction · 0.85
mainFunction · 0.85
cs_driver_helloFunction · 0.85
bs_freeFunction · 0.85
_cs_disasmFunction · 0.85

Calls

no outgoing calls

Tested by 15

mainFunction · 0.68
testFunction · 0.68
test_single_MCFunction · 0.68
test_single_issueFunction · 0.68
test_invalidsFunction · 0.68
test_validsFunction · 0.68
testFunction · 0.68
testFunction · 0.68
testFunction · 0.68
print_insnFunction · 0.68
testFunction · 0.68
testFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…