summaryrefslogtreecommitdiff
path: root/tests/gem_evict_everything.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-29 15:15:56 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-29 18:18:33 +0200
commit5fe116e913192d092d3d73872484a2136217d6f1 (patch)
tree2673b51dd20ada8a3044cec2f73b01ae849ca802 /tests/gem_evict_everything.c
parentfa06b0bce3f45321f88f769d090af6c3a56eab9a (diff)
tests/gem_evict_*: Fix leak in copy
This turned out to be the reason one one of my tests was hitting the list corruption bug - we need a good deal more memory pressure. So I'll now add a new testcase for that. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_evict_everything.c')
-rw-r--r--tests/gem_evict_everything.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gem_evict_everything.c b/tests/gem_evict_everything.c
index d95a54e9..bf93e70d 100644
--- a/tests/gem_evict_everything.c
+++ b/tests/gem_evict_everything.c
@@ -115,6 +115,7 @@ copy(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo, int error)
igt_assert(ret == error);
gem_close(fd, handle);
+ free(obj);
}
static void minor_evictions(int fd, int size, int count)