asterisk/rest-api-templates/param_cleanup.mustache

27 lines
760 B
Plaintext
Raw Permalink Normal View History

2023-05-25 18:45:57 +00:00
{{!
* Asterisk -- An open source telephony toolkit.
*
* Copyright (C) 2013, Digium, Inc.
*
* David M. Lee, II <dlee@digium.com>
*
* See http://www.asterisk.org for more information about
* the Asterisk project. Please do not directly contact
* any of the maintainers of this project for assistance;
* the project provides a web site, mailing lists and IRC
* channels for your use.
*
* This program is free software, distributed under the terms of
* the GNU General Public License Version 2. See the LICENSE file
* at the top of the source tree.
}}
{{!
* Snippet for cleaning up an _args struct.
}}
{{#query_parameters}}
{{#allow_multiple}}
ast_free(args.{{c_name}}_parse);
ast_free(args.{{c_name}});
{{/allow_multiple}}
{{/query_parameters}}