Commit 5fe116e9 authored by Daniel Vetter's avatar Daniel Vetter

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's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent fa06b0bc
......@@ -117,6 +117,7 @@ copy(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo, int alignme
igt_assert(ret == error);
gem_close(fd, handle);
free(obj);
}
static void minor_evictions(int fd, int size, int count)
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment