diff options
| author | Joshua Bakita <jbakita@cs.unc.edu> | 2021-03-07 19:14:19 -0500 |
|---|---|---|
| committer | Joshua Bakita <jbakita@cs.unc.edu> | 2021-03-07 19:25:21 -0500 |
| commit | 899765845196007c695a2f858dbe3a41b8db4a2b (patch) | |
| tree | 98754916059357c0829fd8acc73130565d866ace /SD-VBS/benchmarks/texture_synthesis/src/c/texture.c | |
| parent | afcfb8ee7b005edeba8163f00ce5300cf77ede85 (diff) | |
SD-VBS: Fix memory leaks and tweak allocation bounds
- Fix leaks in localization, multi_ncut, svm, and texture_synthesis
- Lower preallocation for sift and texture_synthesis to match memory
profile with QCIF
- Remove trailing whitespace in script_localization.c
Diffstat (limited to 'SD-VBS/benchmarks/texture_synthesis/src/c/texture.c')
| -rw-r--r-- | SD-VBS/benchmarks/texture_synthesis/src/c/texture.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/SD-VBS/benchmarks/texture_synthesis/src/c/texture.c b/SD-VBS/benchmarks/texture_synthesis/src/c/texture.c index fb0f1ae..b268df9 100644 --- a/SD-VBS/benchmarks/texture_synthesis/src/c/texture.c +++ b/SD-VBS/benchmarks/texture_synthesis/src/c/texture.c | |||
| @@ -150,6 +150,8 @@ void create_texture(F2D *image, params *data) | |||
| 150 | arrayref(atlas,aa(j,i)+1) = besty; | 150 | arrayref(atlas,aa(j,i)+1) = besty; |
| 151 | } | 151 | } |
| 152 | } | 152 | } |
| 153 | free(candlistx); | ||
| 154 | free(candlisty); | ||
| 153 | } | 155 | } |
| 154 | 156 | ||
| 155 | // Creates a list of valid candidates for given pixel using only L-shaped causal area | 157 | // Creates a list of valid candidates for given pixel using only L-shaped causal area |
