pmxcfs: status: remove superfluous NULL check

g_free can be passed a NULL pointer according to the docs [1], it does
nothing in that case.

[1] https://docs.gtk.org/glib/func.free.html

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
Lukas Wagner 2025-07-30 10:12:24 +02:00
parent d408cb295d
commit c704d4ee90

View file

@ -1562,9 +1562,7 @@ static void update_rrd_data(const char *key, gconstpointer data, size_t len) {
}
ret:
if (filename) {
g_free(filename);
}
g_free(filename);
return;