mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
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.
This commit is contained in:
parent
dcebf35ec9
commit
28c0691ab9
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue