[Fixed] memory allocated using g_try_malloc0_n should be freed using g_free()