Skip to content

Commit

Permalink
r821: fixed memory when -y is used
Browse files Browse the repository at this point in the history
  • Loading branch information
lh3 committed Jul 31, 2018
1 parent 99ecdf7 commit b32296e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "getopt.h"
#endif

#define MM_VERSION "2.11-r819-dirty"
#define MM_VERSION "2.11-r821-dirty"

#ifdef __linux__
#include <sys/resource.h>
Expand Down
1 change: 1 addition & 0 deletions map.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,7 @@ static void *worker_pipeline(void *shared, int step, void *in)
free(s->reg[i]);
free(s->seq[i].seq); free(s->seq[i].name);
if (s->seq[i].qual) free(s->seq[i].qual);
if (s->seq[i].comment) free(s->seq[i].comment);
}
}
free(s->reg); free(s->n_reg); free(s->seq); // seg_off, n_seg, rep_len and frag_gap were allocated with reg; no memory leak here
Expand Down

0 comments on commit b32296e

Please sign in to comment.