Use correct file pointer
diff --git a/xmltest.cpp b/xmltest.cpp
index 56d5d5a..f474951 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -1618,7 +1618,7 @@
 

 		FILE* perfFP = fopen("resources/dream.xml", "r");

 		fseek(perfFP, 0, SEEK_END);

-		long size = ftell(fp);

+		long size = ftell(perfFP);

 		fseek(perfFP, 0, SEEK_SET);

 

 		char* mem = new char[size + 1];