Index: trunk/psLib/src/db/psDB.c
===================================================================
--- trunk/psLib/src/db/psDB.c	(revision 12128)
+++ trunk/psLib/src/db/psDB.c	(revision 12170)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.136 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-03-01 03:57:08 $
+ *  @version $Revision: 1.137 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-03-02 02:30:21 $
  *
  *  Copyright (C) 2005-2006  Joshua Hoblitt, University of Hawaii
@@ -941,4 +941,7 @@
         fieldCount = mysql_field_count(dbh->mysql);
 
+        // we're going to exit no matter what after this point
+        mysql_free_result(result);
+
         // if field count is zero the query should have returned no data.  If
         // it's non-zero then something bad has happened.
@@ -948,4 +951,6 @@
             return NULL;
         }
+
+        return psArrayAlloc(0);
     }
 
