Fix leaks with using get_opt_postfix()