Skip to content

Commit

Permalink
Fix allocation error, detected using ASAN
Browse files Browse the repository at this point in the history
Signed-off-by: João Carlos Mendes Luis <jonny@jonny.eng.br>
  • Loading branch information
dioni21 committed Apr 11, 2020
1 parent 36a6e23 commit 09cfb3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/zpool/zpool_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7387,6 +7387,7 @@ print_removal_status(zpool_handle_t *zhp, pool_removal_stat_t *prs)
", (copy is slow, no estimated time)\n"));
}
}
free(vdev_name);

if (prs->prs_mapping_memory > 0) {
char mem_buf[7];
Expand Down

0 comments on commit 09cfb3f

Please sign in to comment.