Skip to content

Commit

Permalink
fix: free another set of tempory allocated pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
hellkite500 committed Jun 13, 2024
1 parent 1914cd8 commit e652bb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lgar.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,9 @@ extern void lgar_move_wetting_fronts(double timestep_h, double *volin_cm, int wf
double theta_new = lgar_theta_mass_balance(layer_num, soil_num, psi_cm, new_mass, prior_mass, AET_demand_cm,
delta_thetas, delta_thickness, soil_type, soil_properties);
actual_ET_demand = *AET_demand_cm;

//done with delta_thetas and delta_thickness, cleanup memory
free(delta_thetas);
free(delta_thickness);
current->theta = fmax(theta_r, fmin(theta_new, theta_e));

}
Expand Down

0 comments on commit e652bb2

Please sign in to comment.