diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c index bd34f5e4b8..62b8394d60 100644 --- a/src/conf/storage_conf.c +++ b/src/conf/storage_conf.c @@ -1694,13 +1694,7 @@ virStoragePoolSourceListNewSource(virConnectPtr conn, { virStoragePoolSourcePtr source; - if (VIR_ALLOC(source) < 0) { - virReportOOMError(conn); - return NULL; - } - if (VIR_REALLOC_N(list->sources, list->nsources+1) < 0) { - VIR_FREE(source); virReportOOMError(conn); return NULL; }