From d0d98d3abeb596523093ccecabe4038c2c150cdc Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sat, 18 Jan 2014 04:52:45 -0500 Subject: [PATCH] libotutil: Fix a possible uninitialized free() in error path Spotted by gcc. --- src/libotutil/ot-keyfile-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libotutil/ot-keyfile-utils.c b/src/libotutil/ot-keyfile-utils.c index f7d8cc1d..833a76f6 100644 --- a/src/libotutil/ot-keyfile-utils.c +++ b/src/libotutil/ot-keyfile-utils.c @@ -69,7 +69,7 @@ ot_keyfile_get_value_with_default (GKeyFile *keyfile, { gboolean ret = FALSE; GError *temp_error = NULL; - gs_free char *ret_value; + gs_free char *ret_value = NULL; ret_value = g_key_file_get_value (keyfile, section, value, &temp_error); if (temp_error)