mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-05 03:56:46 +00:00
23 lines
431 B
C
23 lines
431 B
C
/* radare - LGPL - Copyright 2014 - 2015 - condret */
|
|
|
|
#include <r_anal.h>
|
|
#include <r_list.h>
|
|
#include <r_types.h>
|
|
|
|
R_API RAnalCycleFrame *r_anal_cycle_frame_new() {
|
|
RAnalCycleFrame *cf = R_NEW0 (RAnalCycleFrame);
|
|
if (cf) {
|
|
if (!(cf->hooks = r_list_new ())) {
|
|
free (cf);
|
|
cf = NULL;
|
|
}
|
|
}
|
|
return cf;
|
|
}
|
|
|
|
R_API void r_anal_cycle_frame_free(RAnalCycleFrame *cf) {
|
|
if (!cf) return;
|
|
r_list_free (cf->hooks);
|
|
free (cf);
|
|
}
|