Skip to content

Commit

Permalink
Make asan happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Moe-hacker committed Jul 3, 2024
1 parent 37f062d commit 033e9c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/umount.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ void umount_container(const char *container_dir)
umount(to_umountpoint);
usleep(20000);
}
// Make ASAN happy.
free(container->extra_mountpoint[i]);
free(container->extra_mountpoint[i - 1]);
} else {
break;
}
Expand All @@ -94,6 +97,9 @@ void umount_container(const char *container_dir)
umount(to_umountpoint);
usleep(20000);
}
// Make ASAN happy.
free(container->extra_mountpoint[i]);
free(container->extra_mountpoint[i - 1]);
} else {
break;
}
Expand Down

0 comments on commit 033e9c3

Please sign in to comment.