mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-19 13:56:23 +00:00
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:
parent
fa06b0bce3
commit
5fe116e913
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user