mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
Fix CppCheck Error in utility_functions.c
/supportlibs/pegmarkdown/utility_functions.c:28: error: Cppcheck(memleak): Memory leak: new
This commit is contained in:
parent
36e3772d59
commit
733f81269c
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@ element * cons(element *new, element *list) {
|
|||
element *reverse(element *list) {
|
||||
element *new = NULL;
|
||||
element *next = NULL;
|
||||
#warning Phenom (2017-07-21): I don't know if it is a real memLeak for new. If not remove this warning and add a comment how it is deleted.
|
||||
// cppcheck-suppress memleak
|
||||
while (list != NULL) {
|
||||
next = list->next;
|
||||
new = cons(list, new);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue