Skip to content

Commit

Permalink
also remove temporary directory
Browse files Browse the repository at this point in the history
  • Loading branch information
g3gg0 committed Oct 3, 2023
1 parent 704c38b commit c55aaf6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/esp32.c
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,12 @@ error_t esp32_inject_ca(const char *rootPath, const char *patchedPath, const cha
ret = ERROR_NOT_FOUND;
break;
}
if (fsRemoveDir(cert_path) != NO_ERROR)
{
TRACE_ERROR("Failed to delete directory during clean-up '%s'\r\n", cert_path);
ret = ERROR_NOT_FOUND;
break;
}
} while (0);

free(cert_path);
Expand Down

0 comments on commit c55aaf6

Please sign in to comment.