keyfile: Don't allocate parse_buffer if we don't need it
When loading a GKeyFile, the sequence is usually: keyfile = g_key_file_new(); g_key_file_load_xxx(keyfile, ...) g_key_file_new() calls g_key_file_init(), which allocates a parse_buffer for parsing. g_key_file_load_xxx() will then g_key_file_clear() the keyfile and call g_key_file_init() again. Just don't allocate a parse_buffer unless we need it for parsing.
Showing with 7 additions and 1 deletion