Skip to content

Commit ec6773b

Browse files
committed
Fix memory leak
1 parent d4a712e commit ec6773b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

benchmark/black_scholes/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ int main (int argc, char *argv[]) {
9393
assert(std::fabs(seq_prices[i] - prices[i]) < 0.01);
9494
}
9595
std::cout << "Results are consistent with the sequential version\n";
96+
free(seq_prices);
9697
}
9798

9899
#ifdef ERR_CHK

0 commit comments

Comments
 (0)