Skip to content

Commit

Permalink
SWIPE 2.0.12: Fix memory allocation error and memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
torognes committed Dec 18, 2015
1 parent 47390cb commit fd5d3e0
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2014-06-27 Torbjorn Rognes <[email protected]>
* Version 2.0.12
* Fixed a bug in memory allocation that caused segfaults.
* Fixed a minor memory leak.

2014-06-27 Torbjorn Rognes <[email protected]>
* Version 2.0.11
* Resolved a bug that resulted in SWIPE terminating with a fatal
Expand Down
Binary file modified Linux/mpiswipe
Binary file not shown.
Binary file modified Linux/swipe
Binary file not shown.
Binary file modified Mac/mpiswipe
Binary file not shown.
Binary file modified Mac/swipe
Binary file not shown.
4 changes: 2 additions & 2 deletions matrices.cc
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,9 @@ void score_matrix_init()
void score_matrix_free()
{
free(score_matrix_7);
score_matrix_7t = NULL;
free(score_matrix_7t);
score_matrix_7 = NULL;
free(score_matrix_7t);
score_matrix_7t = NULL;
free(score_matrix_8);
score_matrix_8 = NULL;
free(score_matrix_16);
Expand Down
3 changes: 1 addition & 2 deletions swipe.cc
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ void fatal(const char * format, const char * message)
void * xmalloc(size_t size)
{
const size_t alignment = 16;
void * t;
void * t = NULL;
posix_memalign(& t, alignment, size);

if (t==NULL)
Expand Down Expand Up @@ -560,7 +560,6 @@ void align_threads_init()
}

long totalchunks;
long maxchunksize;

calc_chunks(bins,
threads,
Expand Down
2 changes: 1 addition & 1 deletion swipe.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#define LINE_MAX 2048
#endif

#define SWIPE_VERSION "2.0.11"
#define SWIPE_VERSION "2.0.12"

// Should be 32bits integer
typedef unsigned int UINT32;
Expand Down

0 comments on commit fd5d3e0

Please sign in to comment.