mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-05 05:28:32 +00:00
Fix minor $weather memleak.
This commit is contained in:
parent
a975f9e364
commit
74c19cf8e4
@ -2841,6 +2841,7 @@ static struct text_object *construct_text_object(const char *s,
|
|||||||
interval = 30;
|
interval = 30;
|
||||||
}
|
}
|
||||||
obj->data.weather.interval = interval * 60; // convert to seconds
|
obj->data.weather.interval = interval * 60; // convert to seconds
|
||||||
|
free(icao);
|
||||||
} else {
|
} else {
|
||||||
CRIT_ERR("weather needs arguments: <uri> <icao> <data_type> [interval in minutes]");
|
CRIT_ERR("weather needs arguments: <uri> <icao> <data_type> [interval in minutes]");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user