mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
Set errno on OOM in lxcProcReadMeminfo
It sets the errno on all other errors, do it here too. Also report an error.
This commit is contained in:
parent
92a8e72f9d
commit
e12b8000c8
@ -208,8 +208,10 @@ static int lxcProcReadMeminfo(char *hostpath, virDomainDefPtr def,
|
||||
virBufferAdd(new_meminfo, line, -1);
|
||||
}
|
||||
|
||||
if (virBufferError(new_meminfo))
|
||||
if (virBufferCheckError(new_meminfo) < 0) {
|
||||
res = -errno;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
copied += strlen(line);
|
||||
if (copied > size)
|
||||
|
Loading…
x
Reference in New Issue
Block a user