1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

dtfile/SharedProcs: CID 175229

This commit is contained in:
Jon Trulson 2018-04-12 11:30:59 -06:00
parent 8e4b6605bf
commit 1321d4c299

View file

@ -1348,7 +1348,7 @@ BuildBufferFileName (char *file_name,
/* /*
* This is a function for building a buffer name using predfined input * This is a function for building a buffer name using predfined input
* and name template information from the types database. * and name template information from the types database.
* WARNING: template_input will be freed. It must point to a char *. * WARNING: template_input MAY be freed. It must point to a char *.
*/ */
static char * static char *
@ -1374,12 +1374,11 @@ RetrieveAndUseNameTemplateInfo(
sprintf(buffer_name, name_template, template_input); sprintf(buffer_name, name_template, template_input);
DtDtsFreeAttributeValue(name_template); DtDtsFreeAttributeValue(name_template);
XtFree(template_input); XtFree(template_input);
XtFree(name_template);
return(buffer_name); return(buffer_name);
} }
else else
{ {
XtFree(name_template); DtDtsFreeAttributeValue(name_template);
return(template_input); return(template_input);
} }
} }