Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shawn Webb
Fwupd
Commits
dd10a8f5
Commit
dd10a8f5
authored
Apr 30, 2018
by
Richard Hughes
Browse files
trivial: Fix a tiny memory leak when using 'dfu-tool dump'
parent
3f406685
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/dfu/dfu-tool.c
View file @
dd10a8f5
...
...
@@ -1729,6 +1729,7 @@ dfu_tool_dump (DfuToolPrivate *priv, gchar **values, GError **error)
/* open files */
for
(
guint
i
=
0
;
values
[
i
]
!=
NULL
;
i
++
)
{
g_autofree
gchar
*
tmp
=
NULL
;
g_autoptr
(
DfuFirmware
)
firmware
=
NULL
;
g_autoptr
(
GFile
)
file
=
NULL
;
g_autoptr
(
GError
)
error_local
=
NULL
;
...
...
@@ -1742,7 +1743,8 @@ dfu_tool_dump (DfuToolPrivate *priv, gchar **values, GError **error)
error_local
->
message
);
continue
;
}
g_print
(
"%s
\n
"
,
dfu_firmware_to_string
(
firmware
));
tmp
=
dfu_firmware_to_string
(
firmware
);
g_print
(
"%s
\n
"
,
tmp
);
}
return
TRUE
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment