diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-02-22 20:24:30 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-02-22 21:19:29 -0800 |
commit | 55fc43b78f6e00e8803c41d84ede0fde00b37f7a (patch) | |
tree | 70e84a44ed335f0e156efc3dc35004586389808c | |
parent | 5f6c930472191efce6e8e810ad5ff0a362669b7a (diff) | |
download | mu-55fc43b78f6e00e8803c41d84ede0fde00b37f7a.tar.gz |
2690 - one more memory leak
This is the easy one. The remaining ones are like phantoms popping up and dying at random. One thing I know is that they all have to do with tangling. Always implicated is the line in the tangle layer where instructions are loaded and inserted into After_fragments.
-rw-r--r-- | 020run.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/020run.cc b/020run.cc index c6617607..0fe8eba3 100644 --- a/020run.cc +++ b/020run.cc @@ -235,8 +235,8 @@ void load_all_permanently(string dir) { int num_files = scandir(dir.c_str(), &files, NULL, alphasort); for (int i = 0; i < num_files; ++i) { string curr_file = files[i]->d_name; - if (!isdigit(curr_file.at(0))) continue; - load_permanently(dir+'/'+curr_file); + if (isdigit(curr_file.at(0))) + load_permanently(dir+'/'+curr_file); free(files[i]); files[i] = NULL; } |