mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
libxl: use g_autofree in xenParseSxprVifRate
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
77d228468d
commit
5c98d442df
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user