Files
mirror_zfs/cmd
Joao Carlos Mendes Luis 75c62019f3 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 <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: João Carlos Mendes Luís <jonny@jonny.eng.br>
Closes #10193
2020-04-13 10:54:41 -07:00
..
2019-08-30 09:43:30 -07:00
2019-10-02 10:39:48 -07:00
2020-01-23 11:01:24 -08:00
2019-08-30 09:43:30 -07:00
2020-04-10 10:33:35 -07:00
2020-04-01 10:02:06 -07:00
2019-11-01 10:31:42 -07:00
2020-04-10 21:10:09 -07:00
2019-10-02 10:39:48 -07:00