aboutsummaryrefslogtreecommitdiffstats
path: root/module/os
diff options
context:
space:
mode:
authorJoao Carlos Mendes Luis <[email protected]>2020-04-13 14:54:41 -0300
committerGitHub <[email protected]>2020-04-13 10:54:41 -0700
commit75c62019f3938e7bc81becb4fb2d5b5eb523e79a (patch)
treed0560a68a02f7c3e5436d3edf75c7a91b75ff100 /module/os
parent791e480c6ac7a3e33adc5270b3fc99015f9f0c15 (diff)
Fix allocation errors, detected using ASAN
The test for VDEV_TYPE_INDIRECT is done after a memory allocation, and could return from function without freeing it. Since we don't need that allocation yet, just postpone it. Add a missing free() when buffer is no longer needed. Reviewed-by: Matthew Ahrens <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: João Carlos Mendes Luís <[email protected]> Closes #10193
Diffstat (limited to 'module/os')
0 files changed, 0 insertions, 0 deletions