Skip to content

handle not closed during nvs error paths #24

@mxr

Description

@mxr

Example:

err = nvs_set_u8(handle, NVS_ID_TEMP_UNIT, new_temp_unit);
if (err != ESP_OK) {
return err;
}

Not sure the implications of this.

It's typical to solve this with a goto to centralize cleanup as outlined here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions