diff options
Diffstat (limited to 'src/sysinfo.cpp')
-rw-r--r-- | src/sysinfo.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sysinfo.cpp b/src/sysinfo.cpp index 049a8ca..6c7f08f 100644 --- a/src/sysinfo.cpp +++ b/src/sysinfo.cpp @@ -112,7 +112,10 @@ namespace { /* translators: This is the type of architecture, for example: * "64-bit" or "32-bit" */ - return string(g_strdup_printf (_("%d-bit"), bits)); + char* bytes = g_strdup_printf (_("%d-bit"), bits); + string retval(bytes); + g_free(bytes); + return retval; } typedef struct |