Life cycle bug-fix. Log library info.

Change-Id: I4fd03560f81369f9f0987a3147e953e2fda0b10b
diff --git a/lib/bcc/Script.cpp b/lib/bcc/Script.cpp
index 8fb8fd0..af4b51e 100644
--- a/lib/bcc/Script.cpp
+++ b/lib/bcc/Script.cpp
@@ -107,6 +107,8 @@
 Script::~Script() {
   if (mStatus == ScriptStatus::Compiled) {
     delete mCompiled;
+  } else if (mStatus == ScriptStatus::Cached) {
+    delete mCached;
   }
 }
 
@@ -154,6 +156,7 @@
 
   libraryBC = bitcode;
   librarySize = bitcodeSize;
+  LOGI("libraryBC = %x, librarySize = %d", libraryBC, librarySize);
   return 0;
 }