Branch: Tag:

2017-08-12

2017-08-12 09:19:02 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Fixed leak of types when handling auto.

The resulting type from resolving the auto return type
leaked when there was more than one return statement.

3758:    if( t->car != zero_type_string )    {    /* Not the first one.. */ -  push_finished_type( or_pike_types( t->car, CAR(n)->type, 1 ) ); +  struct pike_type *t2; +  push_finished_type( t2 = or_pike_types( t->car, CAR(n)->type, 1 ) ); +  free_type(t2);    }    else    {