summaryrefslogtreecommitdiff
path: root/rest-api-templates/param_cleanup.mustache
blob: 46edb417ceefc98649ef9f918d16e8a164ee264f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{{!
 * 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}}