Free memory allocated by the C callback proxy.