summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2013-06-07 15:29:32 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2013-06-07 15:29:32 -0400
commit7665d8e216c63a7c4ce8fc982767529273365941 (patch)
tree1876f1c4b61e380b1900fec8d907ce44d8859290
parent4c4316709f3a2bb5a44a1d4d29f9da8f32241dba (diff)
free getline's calls
-rw-r--r--src/c/quikr_functions.c3
1 files changed, 3 insertions, 0 deletions
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;