diff options
Diffstat (limited to 'src/gallium/auxiliary/hud/hud_nic.c')
-rw-r--r-- | src/gallium/auxiliary/hud/hud_nic.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/hud/hud_nic.c b/src/gallium/auxiliary/hud/hud_nic.c index b6c0d9edd55..5fab3319db2 100644 --- a/src/gallium/auxiliary/hud/hud_nic.c +++ b/src/gallium/auxiliary/hud/hud_nic.c @@ -272,8 +272,10 @@ hud_nic_graph_install(struct hud_pane *pane, const char *nic_name, } else if (nic->mode == NIC_RSSI_DBM) snprintf(gr->name, sizeof(gr->name), "%s-rssi", nic->name); - else + else { + free(gr); return; + } gr->query_data = nic; gr->query_new_value = query_nic_load; |