Skip to content

Commit

Permalink
Tried fixed codacy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cnegre committed Mar 16, 2018
1 parent 632c29a commit 0d04f95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/example4/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ main(
const double alpha = 1.2;
const double beta = 0.8;
const double threshold = 0.0;
void *trace;
double *trace;

A = bml_random_matrix(matrix_type, matrix_precision, N, M, sequential);
B = bml_random_matrix(matrix_type, matrix_precision, N, M, sequential);
Expand All @@ -30,6 +30,7 @@ main(
trace = bml_multiply_x2(A, C, threshold); // C=A*A
bml_multiply(A, B, C, alpha, beta, threshold); // C=alpha* A*B + beta*C

free(trace);

This comment has been minimized.

Copy link
@nicolasbock

nicolasbock Mar 16, 2018

Collaborator

You should use 'bml_free_memory' but otherwise it looks good. Let's see what Travis thinks.

bml_deallocate(&A);
bml_deallocate(&B);
bml_deallocate(&C);
Expand Down

0 comments on commit 0d04f95

Please sign in to comment.