Skip to contentSkip to conversation

btt: close devmap file after processing

PATCH New Eric Sandeen 1 participant 1 message Dec 16, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 7/10 btt: close devmap file after processing

Close the file used for btt's -M argument after
processing.

---

btt/devmap.c +1 -0
index 9c0348b..0553a9e 100644
@@ -76,6 +76,7 @@ int dev_map_read(char *fname)
 			break;
 	}
 
+	fclose(fp);
 	return 0;
 }