summaryrefslogtreecommitdiff
path: root/progs/tests/texdown.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/tests/texdown.c')
-rw-r--r--progs/tests/texdown.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/tests/texdown.c b/progs/tests/texdown.c
index 7e46045832..e6881d39a0 100644
--- a/progs/tests/texdown.c
+++ b/progs/tests/texdown.c
@@ -176,6 +176,8 @@ MeasureDownloadRate(void)
orig_getImage = (GLubyte *) malloc(image_bytes + ALIGN);
if (!orig_texImage || !orig_getImage) {
DownloadRate = 0.0;
+ free(orig_texImage);
+ free(orig_getImage);
return;
}