From 7665d8e216c63a7c4ce8fc982767529273365941 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Fri, 7 Jun 2013 15:29:32 -0400 Subject: free getline's calls --- src/c/quikr_functions.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/c') diff --git a/src/c/quikr_functions.c b/src/c/quikr_functions.c index 7e18e64..e55b28c 100644 --- a/src/c/quikr_functions.c +++ b/src/c/quikr_functions.c @@ -75,6 +75,7 @@ double *load_count_matrix(char *filename, int width, int kmer) { count_matrix[x] = atoi(line); } + free(line); pclose(count_output); return count_matrix; @@ -119,6 +120,7 @@ double *load_sensing_matrix(char *filename, int height, int width) { } } + free(line); pclose(sensing_matrix_fh); return sensing_matrix; @@ -156,6 +158,7 @@ char **load_headers(char *filename, int sequences) { headers[x] = header; } + free(line); pclose(grep_output); return headers; -- cgit v1.2.3