From a1c0cc6cca98ec16c0b95268bcc84888eb5f701e Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Thu, 7 Nov 2013 15:31:04 -0500 Subject: fix memleak --- src/c/kmer_utils.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/c') diff --git a/src/c/kmer_utils.c b/src/c/kmer_utils.c index 08463a2..c1fc1e0 100644 --- a/src/c/kmer_utils.c +++ b/src/c/kmer_utils.c @@ -150,5 +150,8 @@ unsigned long long * get_kmer_counts_from_file(const char *fn, const unsigned in } } + free(line); + free(str); + return counts; } -- cgit v1.2.3