diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-04-06 09:14:30 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-04-06 09:14:30 +0300 |
commit | 9e3b0350f5361a78b60c789503306b81a859d88e (patch) | |
tree | f99d225954120cb7633fdbd4ca9f9cdc83359986 /source | |
parent | 78d39cad8bc9c494efb384e833e75d4a3086a025 (diff) |
Fix leak w/ missing external mesh customdata
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/customdata.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/customdata.c b/source/blender/blenkernel/intern/customdata.c index 1ed7c989075..a12d5434b30 100644 --- a/source/blender/blenkernel/intern/customdata.c +++ b/source/blender/blenkernel/intern/customdata.c @@ -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; } |