Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix allocation error, detected using ASAN #10193

Merged
merged 3 commits into from
Apr 13, 2020

Commits on Apr 11, 2020

  1. Fix allocation error, detected using ASAN

    Signed-off-by: João Carlos Mendes Luis <jonny@jonny.eng.br>
    dioni21 committed Apr 11, 2020
    Configuration menu
    Copy the full SHA
    09cfb3f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6a1ac3c View commit details
    Browse the repository at this point in the history
  3. Another leak found with --enable-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 alocation yet, just postpone it.
    
    Signed-off-by: João Carlos Mendes Luís <jonny@jonny.eng.br>
    dioni21 committed Apr 11, 2020
    Configuration menu
    Copy the full SHA
    f22b88f View commit details
    Browse the repository at this point in the history