Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
* maint:
  erts: Fix segmentation fault on failed reallocation
  • Loading branch information
jhogberg committed Aug 15, 2024
2 parents da07de3 + 94697ee commit 31d5a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erts/emulator/beam/erl_alloc_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -6583,7 +6583,7 @@ realloc_thr_pref(ErtsAlcType_t type, Allctr_t *pref_allctr, void *p, Uint size,
goto restart;
}

if (pref_allctr->atags) {
if (pref_allctr->atags && res) {
set_alloc_tag(pref_allctr, res, type);
}

Expand Down

0 comments on commit 31d5a2d

Please sign in to comment.