diff options
author | Kenneth Graunke <[email protected]> | 2019-06-07 01:16:16 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-06-09 15:16:10 -0700 |
commit | 81582e9366497d8674ae342d3d72224fbf514fb9 (patch) | |
tree | b16b01f91b7b3fb3a7b95da84015ddebd7e8fe2b /src/gallium/auxiliary/util | |
parent | 17898a9b7e0cd3bfc95c186586e5cafa1e3a2c9d (diff) |
gallium/u_transfer_helper: Free the staging buffer on unmap.
u_transfer_helper sometimes mallocs a staging buffer, and leaked it.
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r-- | src/gallium/auxiliary/util/u_transfer_helper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_transfer_helper.c b/src/gallium/auxiliary/util/u_transfer_helper.c index 14c4d56392d..b7bd43fd97f 100644 --- a/src/gallium/auxiliary/util/u_transfer_helper.c +++ b/src/gallium/auxiliary/util/u_transfer_helper.c @@ -511,6 +511,7 @@ u_transfer_helper_transfer_unmap(struct pipe_context *pctx, helper->vtbl->transfer_unmap(pctx, trans->trans2); } + free(trans->staging); free(trans); } else { helper->vtbl->transfer_unmap(pctx, ptrans); |