[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Getfem-commits] (no subject)
From: |
Tetsuo Koyama |
Subject: |
[Getfem-commits] (no subject) |
Date: |
Mon, 24 Dec 2018 04:08:24 -0500 (EST) |
branch: devel-tetsuo-fix_vecsave_option_bug
commit 11244915719f788fcf59c30fcaafa0bd2c428afd
Author: Tetsuo Koyama <address@hidden>
Date: Mon Dec 24 18:05:57 2018 +0900
Fix bug
Occur segmentation error when savevec is called many time.
---
src/gmm/gmm_inoutput.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gmm/gmm_inoutput.h b/src/gmm/gmm_inoutput.h
index 21d857d..cca7027 100644
--- a/src/gmm/gmm_inoutput.h
+++ b/src/gmm/gmm_inoutput.h
@@ -1160,6 +1160,7 @@ namespace gmm {
else {
FILE* f = fopen(fname.c_str(), "w");
for (size_type i=0; i < gmm::vect_size(V); ++i) fprintf(f,
Vformat.c_str(), V[i]);
+ fclose(f);
}
}
}