-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
BioEn/bioen/analyze/observables/deer/deer.py
Lines 42 to 43 in 1927780
| pickle.dump([self.labels, self.moddepth, self.nrestraints, self.exp_tmp, | |
| self.exp_err_tmp, self.sim_tmp], open(self.out_pkl, 'wb')) |
This line contains a leak. The call to open returns a file descriptor that is never closed again. This is OK when using only the bioen CLI tool. It will be a problem when using the library from python and analyzing a lot of deer data examples with pkl_out set because each process only is allowed a limited number of open file descriptors. The correct solution would be to use a context manager.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels