in rcd_fishhook/rcd_fishhook.c [212:224]
int rcd_rebind_symbols_image(void *header,
intptr_t slide,
struct rcd_rebinding rebindings[],
size_t rebindings_nel) {
struct rcd_rebindings_entry *rebindings_head = NULL;
int retval = rcd_prepend_rebindings(&rebindings_head, rebindings, rebindings_nel);
rebind_symbols_for_image(rebindings_head, (const struct mach_header *) header, slide);
if (rebindings_head) {
free(rebindings_head->rebindings);
}
free(rebindings_head);
return retval;
}