diff --git a/src/TabulatedPotential.cu b/src/TabulatedPotential.cu
index 0e9f30f21532899809c90996db0caf31751fd9dd..b4548ed91dfc1769da31dcb56915adb0f96e9e60 100644
--- a/src/TabulatedPotential.cu
+++ b/src/TabulatedPotential.cu
@@ -57,7 +57,7 @@ TabulatedPotential::TabulatedPotential(const char* fileName) : fileName(fileName
 		
 		delete[] tokenList;
 	}
-	
+	fclose(inp);
 	init(r, v, count);
 	interpolate();
 	delete[] r;