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>
This commit is contained in:
Daniel Vetter 2013-08-29 15:15:56 +02:00
parent fa06b0bce3
commit 5fe116e913
2 changed files with 2 additions and 0 deletions

View File

@ -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)

View File

@ -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)