changeset 486:920919d62542 memory-leaks

plugged a file descriptor leak in index.cpp
author mas01mc
date Sat, 10 Jan 2009 13:38:22 +0000
parents 282c651e2fbb
children fbcc1303dfeb
files index.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/index.cpp	Sat Jan 10 13:35:27 2009 +0000
+++ b/index.cpp	Sat Jan 10 13:38:22 2009 +0000
@@ -589,6 +589,7 @@
   else
     set_up_query(&query_data, &query, &qNorm, &qnPtr, &qPower, &qpPtr, &meanQdur, &numVectors); // get query vectors
 
+  close(infid); // Free up this file handle
   VERB_LOG(1, "retrieving tracks...");
   
   assert(pointNN>0 && pointNN<=O2_MAXNN);