mirror of
				https://github.com/eledio-devices/thirdparty-tinyexpr.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	Fixed memory leaks and uninitialized values.
This commit is contained in:
		| @@ -42,13 +42,13 @@ typedef double (*te_fun7)(double, double, double, double, double, double, double | ||||
|  | ||||
| typedef union | ||||
| { | ||||
| 	te_fun0 f0; te_fun1 f1; te_fun2 f2; te_fun3 f3; te_fun4 f4; te_fun5 f5; te_fun6 f6; te_fun7 f7; | ||||
|     te_fun0 f0; te_fun1 f1; te_fun2 f2; te_fun3 f3; te_fun4 f4; te_fun5 f5; te_fun6 f6; te_fun7 f7; | ||||
| } te_fun; | ||||
|  | ||||
| typedef struct te_expr { | ||||
|     int type; | ||||
|     union {double value; const double *bound; te_fun fun; }; | ||||
| 	int member_count; | ||||
|     int member_count; | ||||
|     struct te_expr *members[]; | ||||
| } te_expr; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user