mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[PR #1635] using unique_ptr to solve the crash issue. #1794
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1794
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/tzapu/WiFiManager/pull/1635
Author: @zenz
Created: 7/7/2023
Status: 🔄 Open
Base:
master← Head:master📝 Commits (6)
3c8c26cFix memory issue here.815c10fusing unique_ptr6cac6a6unique_ptr should auto release memory;fd6d9fcsorry, forgot to modify the getValue54f3d24我自己的修改754d4da防止过度跳转📊 Changes
9 files changed (+3749 additions, -3108 deletions)
View changed files
📝
README.md(+5 -8)📝
WiFiManager.cpp(+2665 -2042)📝
WiFiManager.h(+544 -531)📝
examples/Super/OnDemandConfigPortal/OnDemandConfigPortal.ino(+49 -25)📝
library.json(+1 -1)📝
library.properties(+1 -1)📝
wm_consts_en.h(+82 -94)📝
wm_strings_en.h(+201 -203)📝
wm_strings_es.h(+201 -203)📄 Description
on ESP8266, while using
delete[] _value;
_value = new char[.....]
will cause a crash with init WiFiManagerParameter.
so try to use unique_ptr.reset to solve the issue. unique_ptr variable should be auto release during the destructor.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.