Diff between e65494e3a9fe8e25aed38b9d5fa8e576c3d7ad32 and 28ce42b050229f20036dd74492f66fb2352c070b
Changed Files
| File | Additions | Deletions | Status |
| plugins/hostname.c | +1 | -2 | modified |
Full Patch
diff --git a/plugins/hostname.c b/plugins/hostname.c
index f7ab9e8..1a9513a 100644
--- a/plugins/hostname.c
+++ b/plugins/hostname.c
@@ -213,11 +213,10 @@ static void read_dmi_fallback(void)
return;
type = atoi(contents);
+ g_free(contents);
if (type < 0 || type > 0x1D)
return;
- g_free(contents);
-
/* from systemd hostname chassis list */
switch (type) {
case 0x3: