Skip to content

Commit

Permalink
fix(radio): memory leak in ModelMap::renameLabel (#4675)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasKuehne authored Feb 25, 2024
1 parent 46ef167 commit 49331bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions radio/src/storage/modelslist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,7 @@ bool ModelMap::renameLabel(const std::string &from, std::string to,
if(curlen + csvto.size() - csvfrom.size() > LABELS_LENGTH - 1) {
TRACE("Labels: Rename Error! Labels too long on %s", model->modelName);
if (progress != nullptr) progress("", 100); // Kill progress dialog
free(modeldata);
return true;
}
}
Expand Down

0 comments on commit 49331bb

Please sign in to comment.