Reuse previously allocated string when setting value
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 29 Jul 2014 20:57:21 +0000 (16:57 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 29 Jul 2014 21:26:32 +0000 (17:26 -0400)
commit9773681407e4e8fce40f247132dc99fabe306bfe
tree586c5d08bcb540338082715fbcdd3cc701a8af90
parente6235f1fd983de6cd80951f0ed179894839d6ac9
Reuse previously allocated string when setting value

bt_ctf_field_string_set_value() frees and reallocates a new
g_string object if the value is changed. This change ensures
that the previous string is used if possible.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ir/event-fields.c
This page took 0.026014 seconds and 4 git commands to generate.