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

[release/1.5] Fix panic in metadata content writer on copy error #6045

Merged

Commits on Sep 23, 2021

  1. Fix panic in metadata content writer on copy error

    The `createAndCopy` function is only called when `nw.w` is nil
    in order to create a new writer and prepare it. The current code
    is attempting to close `nw.w` when there is a copy error. The
    correct behavior would be to close the new writer and not touch `nw.w`.
    
    Signed-off-by: Derek McGowan <derek@mcg.dev>
    (cherry picked from commit b9cf0d7)
    Signed-off-by: Derek McGowan <derek@mcg.dev>
    dmcgowan committed Sep 23, 2021
    Configuration menu
    Copy the full SHA
    a4b51d1 View commit details
    Browse the repository at this point in the history