commit 30f264c2a40291727e808796531f596452059dbe
Author: David Sorber <david.sorber@gmail.com>
Date:   Thu Feb 2 08:54:09 2017 -0500

    Correcting memory leak cause by not calling sqlite3_finalize.

diff --git a/software/sqlite_poc/DBManager.h b/software/sqlite_poc/DBManager.h
index e9be1a2..c0cd7cf 100644
--- a/software/sqlite_poc/DBManager.h
+++ b/software/sqlite_poc/DBManager.h
@@ -88,6 +88,8 @@ class DBManager
                 output_vector->push_back(result_row);
             }
 
+            sqlite3_finalize(sqlite_statement);
+
             return output_vector;
         }
 
diff --git a/software/sqlite_poc/Makefile b/software/sqlite_poc/Makefile
index ce32418..2f90e32 100644
--- a/software/sqlite_poc/Makefile
+++ b/software/sqlite_poc/Makefile
@@ -1,5 +1,5 @@
 
-CXXFLAGS=-std=c++11
+CXXFLAGS=-g -std=c++11
 OBJECTS = main.o DBManager.o
 
 all: main
diff --git a/software/sqlite_poc/main.cc b/software/sqlite_poc/main.cc
index 45f5326..04b612a 100644
--- a/software/sqlite_poc/main.cc
+++ b/software/sqlite_poc/main.cc
@@ -57,7 +57,10 @@ int main(int argc, char** argv)
             std::cout << "Row: " << std::setw(4) << row_index << " - ";
             print(*row);
             ++row_index;
+            delete row;
         }
+        
+        delete results;
     }
     
     return 0;
