mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-09 17:16:15 +00:00
[C][Client] Treat the data type "byteArray" same as "string", part 2 (#10067)
This commit is contained in:
@@ -248,6 +248,12 @@ void {{classname}}_free({{classname}}_t *{{classname}}) {
|
||||
}
|
||||
{{/isString}}
|
||||
{{/isEnum}}
|
||||
{{#isByteArray}}
|
||||
if ({{{classname}}}->{{{name}}}) {
|
||||
free({{{classname}}}->{{{name}}});
|
||||
{{classname}}->{{name}} = NULL;
|
||||
}
|
||||
{{/isByteArray}}
|
||||
{{#isBinary}}
|
||||
if ({{{classname}}}->{{{name}}}) {
|
||||
free({{{classname}}}->{{{name}}}->data);
|
||||
|
||||
Reference in New Issue
Block a user