projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcebf35
)
Fix a one-time memory leak.
author
Carl Worth
<cworth@cworth.org>
Fri, 16 Oct 2009 20:41:37 +0000
(13:41 -0700)
committer
Carl Worth
<cworth@cworth.org>
Fri, 16 Oct 2009 20:41:37 +0000
(13:41 -0700)
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.
notmuch-index-message.cc
patch
|
blob
|
history
diff --git
a/notmuch-index-message.cc
b/notmuch-index-message.cc
index dd3fbb44687ba1859be696bf86ae9ee12a86b8dd..dfb1825edccb578566b8a33105a508710feb9119 100644
(file)
--- 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);