forked from loafle/openapi-generator-original
[C][Client] Treat the data type "byteArray" same as "string", part 2 (#10067)
This commit is contained in:
parent
bea17c9d68
commit
c21e6de7da
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user