Skip to content

Commit

Permalink
examples: Fix warnings/leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller authored and jeromerobert committed Feb 20, 2024
1 parent d096616 commit 99fde4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions examples/c-simple-cylinder.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,5 +180,6 @@ int main(int argc, char **argv) {
hmat.destroy(hmatrix);
hmat_delete_cluster_tree(cluster_tree);
hmat.finalize();
free(points);
return 0;
}
8 changes: 4 additions & 4 deletions examples/hodlrvsllt.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
#include "common/chrono.h"
#include "common/my_assert.h"

const static double epsilon = 1e-3;
const static int nDoF = 3000;
const static float zero = 0;
const static float one = 1;
static const double epsilon = 1e-3;
static const int nDoF = 3000;
static const float zero = 0;
static const float one = 1;

struct context_t {
int n;
Expand Down

0 comments on commit 99fde4c

Please sign in to comment.