flush
[m6w6/ext-psi] / src / parser.h
index ff0d4d6f1d1596d48c14c7a5a9622ce42291008a..4e5e0648351d4abcb8eb53b26186635b31dfb341 100644 (file)
@@ -461,7 +461,9 @@ static inline let_stmt *init_let_stmt(decl_var *var, let_value *val) {
 
 static inline void free_let_stmt(let_stmt *stmt) {
        free_decl_var(stmt->var);
-       free_let_value(stmt->val);
+       if (stmt->val) {
+               free_let_value(stmt->val);
+       }
        free(stmt);
 }