Project

General

Profile

Bug #3147

scan-build warning for mime decoder

Added by Victor Julien about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

  CC       util-decode-mime.o
util-decode-mime.c:194:31: warning: Use of memory after it is freed
            lastSibling->next = entity->child;
            ~~~~~~~~~~~~~~~~~ ^
util-decode-mime.c:861:24: warning: Potential leak of memory pointed to by 'val'
        state->hname = NULL;
                       ^~~~
/usr/lib/llvm-8/lib/clang/8.0.0/include/stddef.h:105:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
2 warnings generated.

Related issues

Related to Task #3153: tracking: scan-build warningsNewActions

History

#1

Updated by Victor Julien about 1 month ago

  • Related to Task #3153: tracking: scan-build warnings added

Also available in: Atom PDF