All the parameters passed to dialog() or passed by-value. This means that any changes made to these variables inside dialog() will not be seen by main(). For example:
>> d_norm=realloc(d_norm,...