Fix leak w/ missing external mesh customdata
This commit is contained in:
parent
78d39cad8b
commit
9e3b0350f5
@ -3577,6 +3577,7 @@ void CustomData_external_read(CustomData *data, ID *id, CustomDataMask mask, int
|
||||
|
||||
cdf = cdf_create(CDF_TYPE_MESH);
|
||||
if (!cdf_read_open(cdf, filename)) {
|
||||
cdf_free(cdf);
|
||||
fprintf(stderr, "Failed to read %s layer from %s.\n", layerType_getName(layer->type), filename);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user