Ejemplo n.º 1
0
R_API RIO *r_io_free(RIO *io) {
	if (!io) return NULL;
	/* TODO: properly free inner nfo */
	/* TODO: memory leaks */
	r_list_free (io->sections);
	r_list_free (io->maps);
	r_io_desc_fini (io);
	free (io);
	return NULL;
}
Ejemplo n.º 2
0
Archivo: io.c Proyecto: j123123/radare2
R_API RIO *r_io_free(RIO *io) {
	if (!io) return NULL;
	r_list_free (io->plugins);
	r_list_free (io->sections);
	r_list_free (io->maps);
	r_list_free (io->undo.w_list);
	r_cache_free (io->buffer);
	r_list_free (io->cache);
	r_io_desc_fini (io);
	free (io);
	return NULL;
}