Skip to content
Snippets Groups Projects
Commit 29f8def2 authored by Jameson Graef Rollins's avatar Jameson Graef Rollins
Browse files

analyze: clear all figures after running each followup

This makes sure we're not holding up figures (and consuming memory)
unnecessarily.
parent 95f44757
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@ import sys
import argparse
import logging
from matplotlib import pyplot as plt
from . import __version__, set_signal_handlers
from . import config
from .plugins import FOLLOWUPS
......@@ -62,6 +64,7 @@ def analyze_event(event, plugins=None):
except:
complete = False
logging.exception("exception in {}:".format(name))
plt.close('all')
if complete:
logging.info("analysis complete")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment