diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-01 13:14:20 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-01 13:14:20 +0400 |
commit | 973771723414e49709c100b1c3a48c7bdeb51cdd (patch) | |
tree | d8f1aaf5ef07cc4b748e5176039970771379ac3a /source/blender/imbuf | |
parent | 9742a6f6cb053ff45060f4bb5f5fa96084b7f5b5 (diff) |
Fix for some unlikely memory leaks, remove redundant checks
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/targa.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/imbuf/intern/targa.c b/source/blender/imbuf/intern/targa.c index 7e6116b242c..6dbd7a4027e 100644 --- a/source/blender/imbuf/intern/targa.c +++ b/source/blender/imbuf/intern/targa.c @@ -618,6 +618,9 @@ ImBuf *imb_loadtarga(unsigned char *mem, size_t mem_size, int flags, char colors } if (flags & IB_test) { + if (cmap) { + MEM_freeN(cmap); + } return ibuf; } |