summaryrefslogtreecommitdiff
path: root/src/core/wee-upgrade.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-04-03 14:23:31 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-04-03 14:23:31 +0200
commit2a9bd75eeedbcc54dd17a258f7ba385a8887cd0f (patch)
tree5fba15f0002d142ea0a81cc480a6fa2fa9fc6f70 /src/core/wee-upgrade.c
parent134713c6d1febc7277231665ef621092aa561c83 (diff)
downloadweechat-2a9bd75eeedbcc54dd17a258f7ba385a8887cd0f.zip
core: close .upgrade files before deleting them after /upgrade
Diffstat (limited to 'src/core/wee-upgrade.c')
-rw-r--r--src/core/wee-upgrade.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/wee-upgrade.c b/src/core/wee-upgrade.c
index 0e1b6a242..2396fd728 100644
--- a/src/core/wee-upgrade.c
+++ b/src/core/wee-upgrade.c
@@ -769,6 +769,7 @@ upgrade_weechat_load ()
upgrade_file = upgrade_file_new (WEECHAT_UPGRADE_FILENAME, 0);
rc = upgrade_file_read (upgrade_file, &upgrade_weechat_read_cb, NULL);
+ upgrade_file_close (upgrade_file);
if (!hotlist_reset)
gui_hotlist_clear ();