diff options
author | Lionel Landwerlin <[email protected]> | 2017-05-24 01:48:36 +0100 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2017-05-24 10:50:18 +0100 |
commit | 6200d835a0ad1eef50f6dd012de26f112cdbfe4c (patch) | |
tree | ec391488fc751323ee32e05914ed65dc8a6b46d3 /src/intel | |
parent | 5318870f5457104aae87d7cd81b347e1aea231ea (diff) |
aubinator: fix double free
1;4601;0c
Free previously allocated filename outside the for loop.
CID: 1405014
Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/tools/aubinator_error_decode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/tools/aubinator_error_decode.c b/src/intel/tools/aubinator_error_decode.c index 37c66ec0f68..506d39012b8 100644 --- a/src/intel/tools/aubinator_error_decode.c +++ b/src/intel/tools/aubinator_error_decode.c @@ -874,8 +874,8 @@ main(int argc, char *argv[]) file = fopen(filename, "r"); if (!file) { int minor; + free(filename); for (minor = 0; minor < 64; minor++) { - free(filename); ret = asprintf(&filename, "%s/%d/i915_error_state", path, minor); assert(ret > 0); |