aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-16 13:41:37 -0700
committerCarl Worth <cworth@cworth.org>2009-10-16 13:41:37 -0700
commit28c0691ab96b4550b6b5ec80d441cefc591e1098 (patch)
tree8508be502987d738f6258ce7f218466a3cb653d9
parentdcebf35ec9d177720a120fd8601f966d169d2edf (diff)
Fix a one-time memory leak.
This was a single object in main outside any loops, so there was no impact on performance or anything, but obviously we still want to patch this. Of course, valgrind gets the credit for seeing this.
-rw-r--r--notmuch-index-message.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/notmuch-index-message.cc b/notmuch-index-message.cc
index dd3fbb44..dfb1825e 100644
--- a/notmuch-index-message.cc
+++ b/notmuch-index-message.cc
@@ -817,6 +817,8 @@ main (int argc, char **argv)
}
}
+ g_io_channel_unref (channel);
+
gettimeofday (&tv_now, NULL);
elapsed = (tv_now.tv_sec - tv_start.tv_sec +
(tv_now.tv_usec - tv_start.tv_usec) / 1e6);