I'm getting an error potentially uninitialized local pointer variable 'y' used & potentially uninitialized local pointer variable 'z' used, in the code provided below. Please help me with the solution?
UINT8* x = new UINT8[512];
if (!x) goto clean;
//UINT32* y = NULL;
UINT32* y = new UINT32[4];
if (!y) goto clean;
//char* z = NULL;
char* z = new char[512];
if (!z) goto clean;
{.... Some Code....}
clean:
if (x) delete[] x;
if (y) delete[] y;
if (z) delete[] z;