Should return std::string

This is only used in C++, so there is no need to g_strdup in here. Also,
this fixes a memory leak in KvpFrameImpl.
This commit is contained in:
lmat
2017-08-18 17:44:53 -04:00
parent 048b8e37a1
commit a9cc488cbf
3 changed files with 5 additions and 13 deletions

View File

@@ -35,7 +35,7 @@ test_kvp_get_slot (int run,
{
gchar* tmp;
failure_args (msg, __FILE__, __LINE__, "run=%d", run);
printf (" Value is %s\n", test_val2->to_string ());
printf (" Value is %s\n", test_val2->to_string ().c_str ());
}
}