param_cleanup.mustache 760 B

1234567891011121314151617181920212223242526
  1. {{!
  2. * Asterisk -- An open source telephony toolkit.
  3. *
  4. * Copyright (C) 2013, Digium, Inc.
  5. *
  6. * David M. Lee, II <dlee@digium.com>
  7. *
  8. * See http://www.asterisk.org for more information about
  9. * the Asterisk project. Please do not directly contact
  10. * any of the maintainers of this project for assistance;
  11. * the project provides a web site, mailing lists and IRC
  12. * channels for your use.
  13. *
  14. * This program is free software, distributed under the terms of
  15. * the GNU General Public License Version 2. See the LICENSE file
  16. * at the top of the source tree.
  17. }}
  18. {{!
  19. * Snippet for cleaning up an _args struct.
  20. }}
  21. {{#query_parameters}}
  22. {{#allow_multiple}}
  23. ast_free(args.{{c_name}}_parse);
  24. ast_free(args.{{c_name}});
  25. {{/allow_multiple}}
  26. {{/query_parameters}}