Fix issue with freeing blueprints in c-interface