Index: trunk/psLib/src/db/psDB.c
===================================================================
--- trunk/psLib/src/db/psDB.c	(revision 7975)
+++ trunk/psLib/src/db/psDB.c	(revision 7976)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.71 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-07-26 01:15:56 $
+ *  @version $Revision: 1.72 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-07-26 01:37:54 $
  *
  *  Copyright 2005 Joshua Hoblitt, University of Hawaii
@@ -630,6 +630,4 @@
     field = mysql_fetch_fields(result);
     fieldCount = mysql_num_fields(result);
-    // Clean up mysql memory
-    mysql_free_result(result);
 
     // this metadata is returned
@@ -657,4 +655,7 @@
         }
     }
+
+    // Clean up mysql memory
+    mysql_free_result(result);
 
     return table;
