summaryrefslogtreecommitdiff
path: root/src/core/core-upgrade-file.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-25 19:30:32 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-26 21:06:06 +0200
commitac7cc2576328dc4ee4247544d87607a21cbd8fa9 (patch)
treec94a7be85eca16ac798d031d987b5e596e26ac0c /src/core/core-upgrade-file.c
parentee51e6c05f4895c6fb73e1555708d47f1af8c922 (diff)
downloadweechat-ac7cc2576328dc4ee4247544d87607a21cbd8fa9.zip
core: remove check of NULL pointers before calling infolist_free() (issue #865)
Diffstat (limited to 'src/core/core-upgrade-file.c')
-rw-r--r--src/core/core-upgrade-file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/core-upgrade-file.c b/src/core/core-upgrade-file.c
index 2a90d96a7..83a99592e 100644
--- a/src/core/core-upgrade-file.c
+++ b/src/core/core-upgrade-file.c
@@ -709,8 +709,7 @@ upgrade_file_read_object (struct t_upgrade_file *upgrade_file)
}
end:
- if (infolist)
- infolist_free (infolist);
+ infolist_free (infolist);
free (name);
free (value_str);
free (buffer);