Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 2f8f1d15da74d63fce23f7a2f9d99c0e320b0da9..67fded8eb0940016c8a994e8ea0de46e98a813ed 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -42,6 +42,9 @@ |
#include "global-handles.h" |
#include "heap-profiler.h" |
#include "messages.h" |
+#ifdef COMPRESS_STARTUP_DATA_BZ2 |
+#include "natives.h" |
+#endif |
#include "parser.h" |
#include "platform.h" |
#include "profile-generator-inl.h" |
@@ -357,6 +360,7 @@ int StartupDataDecompressor::Decompress() { |
compressed_data[i].data = decompressed; |
} |
V8::SetDecompressedStartupData(compressed_data); |
+ i::DeleteArray(compressed_data); |
return 0; |
} |