[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/02: harness: Throw away the lab reference when it is no longer used



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit 55716ecb34e0b48f6d23afe5fbf44c1021b6456f
Author: Niels Thykier <niels@thykier.net>
Date:   Thu Sep 26 08:50:19 2013 +0200

    harness: Throw away the lab reference when it is no longer used
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 reporting/harness |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/reporting/harness b/reporting/harness
index 588d276..ca4539a 100755
--- a/reporting/harness
+++ b/reporting/harness
@@ -315,6 +315,8 @@ unless ($opt{'reports-only'}) {
     #   the lab actually was modified, then this will at least keep
     #   the lab metadata consistent with the actual contents.
     $LAB->close;
+    # Throw away the lab to avoid it hogging memory.
+    $LAB = undef;
 
     if (@worklist and $opt{'incremental-mode'}) {
         # Extra work for the incremental run

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: