summaryrefslogtreecommitdiffstats
path: root/lib/class/dba.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/dba.class.php')
-rw-r--r--lib/class/dba.class.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/class/dba.class.php b/lib/class/dba.class.php
index 71e6b6c8..e9d0304d 100644
--- a/lib/class/dba.class.php
+++ b/lib/class/dba.class.php
@@ -1,7 +1,7 @@
<?php
/*
- Copyright (c) 2001 - 2008 Ampache.org
+ Copyright (c) Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
@@ -130,6 +130,17 @@ class Dba {
} // num_rows
/**
+ * finish
+ * This closes a result handle and clears the memory assoicated with it
+ */
+ public static function finish($resource) {
+
+ // Clear the result memory
+ mysql_free_result($resource);
+
+ } // finish
+
+ /**
* affected_rows
* This emulates the mysql_affected_rows function
*/