Fix leak w/ missing external mesh customdata

This commit is contained in:
Campbell Barton 2016-04-06 16:14:30 +10:00
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;
}