Skip to content

Commit

Permalink
Merge pull request #1820 from McStasMcXtrace/g5t-patch-4
Browse files Browse the repository at this point in the history
  • Loading branch information
willend authored Jan 22, 2025
2 parents 0308b6f + 4c6c2a7 commit 80aae5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mcstas-comps/share/polyhedron.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ int line_polyhedron_intersect(double line_t, Coords line_p, Coords line_v,
int *plane_number = (int*)malloc(a->nf * sizeof(int));
int *type = (int*)malloc(a->nf * sizeof(int));

if (dtype == NULL || dpoint == NULL || time == NULL || point == NULL || plan_number == NULL || type == NULL) {
if (dtime == NULL || dpoint == NULL || time == NULL || point == NULL || plane_number == NULL || type == NULL) {
// Handle memory allocation failure
fprintf(stderr, "Memory allocation failed in line_polyhedron_intersect\n");
free(dtime);
Expand Down

0 comments on commit 80aae5f

Please sign in to comment.