From ee0e2c480f8e86981d0410fb79d83223d7194ddd Mon Sep 17 00:00:00 2001
From: Eugene Livis <elivis@basistech.com>
Date: Mon, 30 Mar 2015 12:07:06 -0400
Subject: [PATCH] Fixed minor build issue

---
 tsk/auto/case_db.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tsk/auto/case_db.cpp b/tsk/auto/case_db.cpp
index 94a91d7c4..d41ef62b5 100644
--- a/tsk/auto/case_db.cpp
+++ b/tsk/auto/case_db.cpp
@@ -61,7 +61,7 @@ TskCaseDb::newDb(const TSK_TCHAR * const path)
     // ELTODO: check here which database to initialize
     //TskDb *db = new TskDbSqlite(path, true);
 
-    return TskDbPostgreSQL(path, true);
+    TskDb *db = new TskDbPostgreSQL(path, true);
 #else
     TskDb *db = new TskDbSqlite(path, true);
 #endif // TSK_WIN32
@@ -103,7 +103,7 @@ TskCaseDb::openDb(const TSK_TCHAR * path)
     // ELTODO: check here which database to initialize
     //TskDb *db = new TskDbSqlite(path, true);
 
-    return TskDbPostgreSQL(path, true);
+    TskDb *db = new TskDbPostgreSQL(path, true);
 #else
     TskDb *db = new TskDbSqlite(path, true);
 #endif // TSK_WIN32
-- 
GitLab