mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-07 12:25:38 +00:00
trivial: Fix a small memory leak at startup
This commit is contained in:
parent
51a1bc5b66
commit
6a2d222eea
@ -6639,9 +6639,9 @@ fu_engine_ensure_client_certificate(FuEngine *self)
|
|||||||
static void
|
static void
|
||||||
fu_engine_context_set_battery_threshold(FuContext *ctx)
|
fu_engine_context_set_battery_threshold(FuContext *ctx)
|
||||||
{
|
{
|
||||||
const gchar *vendor;
|
|
||||||
guint64 minimum_battery;
|
guint64 minimum_battery;
|
||||||
g_autofree gchar *battery_str = NULL;
|
g_autofree gchar *battery_str = NULL;
|
||||||
|
g_autofree gchar *vendor = NULL;
|
||||||
|
|
||||||
vendor = fu_context_get_hwid_replace_value(ctx, FU_HWIDS_KEY_MANUFACTURER, NULL);
|
vendor = fu_context_get_hwid_replace_value(ctx, FU_HWIDS_KEY_MANUFACTURER, NULL);
|
||||||
if (vendor != NULL) {
|
if (vendor != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user