-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pointer variable is used after releasing the memory with free(). This is a bug and should be fixed. Without this fix, the benchmark code may not build or run correctly. error: pointer used after 'void free(void*)' [-Werror=use-after-free] This commit fixes the issue by releasing the memory after benchmark::DoNotOptimize() is called.
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters