diff options
author | Petri Latvala <petri.latvala@intel.com> | 2019-01-16 13:20:41 +0200 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2019-01-21 13:51:01 +0200 |
commit | 72964897ce92525ea62e1e1b1b7df24b6c6125dd (patch) | |
tree | 18326259826cfe20539a40bdccd5dfdb2954283e /man/intel_reg.rst | |
parent | bccb4a1e3360523315a415a2d3acfd7f9c90133c (diff) |
benchmarks/gem_userptr_benchmark: Correctly free memory
if (p) free(p) does a useless check, free(NULL) is a valid call. Also
assign NULL so we don't end up double-freeing memory if anyone
reorders nr_bos to have a 0 after other values.
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'man/intel_reg.rst')
0 files changed, 0 insertions, 0 deletions