R
Richard Bos
Orhan Kavrakoglu said:int *pointer1;
foo(&pointer1);
void foo(int **pointer)
{
*pointer = malloc(...);
}
I would say that this does not invoke UB (never mind the memory leak)
because the uninitialized pointer1 is never dereferenced. Am I
correct?
Yup. Moreover, it is never passed _as_ a pointer. Only its address is
passed.
Richard