kun*_*nir 1 c memory-leaks glib
我无法理解这个函数如何返回字符串gchar*.
它是否为字符串存储动态分配内存?那么,在这种情况下,内存泄漏可能吗?
typedef char gchar;
gchar *g_key_file_get_string(GKeyFile *key_file,
const gchar *group_name,
const gchar *key,GError **error)
Run Code Online (Sandbox Code Playgroud)
抱歉英语不好.