Coverity CID 2043: Don't leak memory

This commit is contained in:
christos 2006-03-26 21:49:01 +00:00
parent d06f1825d5
commit 59ffb64e52
1 changed files with 3 additions and 2 deletions

5
dist/cdk/fselect.c vendored
View File

@ -2,8 +2,8 @@
/*
* $Author: christos $
* $Date: 2006/03/26 21:46:25 $
* $Revision: 1.3 $
* $Date: 2006/03/26 21:49:01 $
* $Revision: 1.4 $
*/
/*
@ -952,6 +952,7 @@ static void completeFilenameCB (EObjectType objectType GCC_UNUSED, void *object
/* If the filename length is equal to zero, just leave. */
if (filenameLen == 0)
{
freeChar (filename);
Beep();
return;
}