- const struct sr_option *option = sr_input_options_get(structure);
- auto option_array = shared_ptr<const struct sr_option>(
- option, [=](const struct sr_option *) {
- sr_input_options_free(structure); });
+ const struct sr_option **options = sr_input_options_get(structure);
+ auto option_array = shared_ptr<const struct sr_option *>(
+ options, sr_input_options_free);