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:
parent
d408cb295d
commit
c704d4ee90
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue