From 60ab80b0885c8fc059e3be949b24eef019e7a908 Mon Sep 17 00:00:00 2001
From: Andrea Smith <smit9523@umn.edu>
Date: Sun, 4 Oct 2020 13:56:33 -0500
Subject: Update mapper again this time pls work dear fucking god

---
 P1/src/mapper.c | 1 +
 1 file changed, 1 insertion(+)

(limited to 'P1')

diff --git a/P1/src/mapper.c b/P1/src/mapper.c
index 2379264..e23a484 100644
--- a/P1/src/mapper.c
+++ b/P1/src/mapper.c
@@ -116,6 +116,7 @@ void writeIntermediateDS() {
 		sprintf(filename, "output/map_%d/%s.txt", mapperID, tempNode -> key);
 		FILE* fptr = fopen(filename, "w");
 		tempNode = tempNode -> next;
+		fclose(fptr);
 	}
 }
 
-- 
cgit v1.2.3