提交 5c98d442 编写于 作者: J Ján Tomko

libxl: use g_autofree in xenParseSxprVifRate

Signed-off-by: NJán Tomko <jtomko@redhat.com>
Reviewed-by: NPeter Krempa <pkrempa@redhat.com>
上级 77d22846
......@@ -1063,7 +1063,7 @@ static const char *vif_bytes_per_sec_re = "^[0-9]+[GMK]?[Bb]/s$";
static int
xenParseSxprVifRate(const char *rate, unsigned long long *kbytes_per_sec)
{
char *trate = NULL;
g_autofree char *trate = NULL;
char *p;
regex_t rec;
int err;
......@@ -1112,7 +1112,6 @@ xenParseSxprVifRate(const char *rate, unsigned long long *kbytes_per_sec)
cleanup:
regfree(&rec);
VIR_FREE(trate);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册