changeset 542:79ffab663ace multiprobeLSH

This fix plugs a minor memory leak introduced in caching file references.
author mas01mc
date Sat, 07 Feb 2009 18:01:18 +0000
parents 52d82badc544
children 6afeb2c76957
files insert.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/insert.cpp	Sat Feb 07 16:59:31 2009 +0000
+++ b/insert.cpp	Sat Feb 07 18:01:18 2009 +0000
@@ -308,6 +308,7 @@
     }    
     if(cache->reference){
       audiodb_free_datum_reference(cache->reference);
+      free(cache->reference);
       cache->reference = NULL;
     }    
   }