mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtfile/Help.c: coverity CID 88484; use after free
This commit is contained in:
parent
4543bc6192
commit
ec93faffe7
1 changed files with 2 additions and 1 deletions
|
@ -473,7 +473,7 @@ MapFileTypeToHelpString(
|
|||
char * desc;
|
||||
Boolean isAction;
|
||||
char * tmpStr;
|
||||
char * label;
|
||||
char * label = NULL;
|
||||
|
||||
/* Special case for the 2 built in directory commands */
|
||||
if (strcmp(filetype, openNewView) == 0)
|
||||
|
@ -536,6 +536,7 @@ MapFileTypeToHelpString(
|
|||
buf = XtMalloc(strlen(label) + strlen(helpPattern) + 100);
|
||||
sprintf(buf, helpPattern, label);
|
||||
DtDtsFreeAttributeValue(label);
|
||||
label = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue