summaryrefslogtreecommitdiff
path: root/hardinfo2/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo2/util.c')
-rw-r--r--hardinfo2/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hardinfo2/util.c b/hardinfo2/util.c
index 16e586fd..bf8c3f57 100644
--- a/hardinfo2/util.c
+++ b/hardinfo2/util.c
@@ -996,11 +996,11 @@ gchar *h_strdup_cprintf(const gchar * format, gchar * source, ...)
if (source) {
retn = g_strconcat(source, buffer, NULL);
g_free(buffer);
+ g_free(source);
} else {
retn = buffer;
}
- g_free(source);
return retn;
}