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:
Michal Privoznik
2013-07-10 11:07:31 +02:00
parent 1cdaebf237
commit 8290cbbc38
20 changed files with 459 additions and 163 deletions
+2
View File
@@ -37,6 +37,8 @@
#include "viralloc.h"
#include "virstring.h"
#define VIR_FROM_THIS VIR_FROM_NONE
static virCapsPtr caps;
static virDomainXMLOptionPtr xmlopt;