colinsheppard/instream — Issue #35: Fix left-open file in TimeSeriesInputManager.m
Author: SFRailsback
Created: 2011-10-28 20:03:14+00:00
State: open

TimeSeriesInputManager.m has an optional method printDataToFileNamed. This method opens an output file and forgets to close it (just found this problem in a completely different code).

I think we just need:

fclose(filePtr);

right before the return statement.

(This class is part of EcoSwarm, which I need to update as we finish up this version of instream.)