mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
viralloc: Report OOM error on failure
Similarly to VIR_STRDUP, we want the OOM error to be reported in VIR_ALLOC and friends.
This commit is contained in:
@@ -37,6 +37,8 @@
|
||||
#include "viralloc.h"
|
||||
#include "virstring.h"
|
||||
|
||||
#define VIR_FROM_THIS VIR_FROM_NONE
|
||||
|
||||
static virCapsPtr caps;
|
||||
static virDomainXMLOptionPtr xmlopt;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user