Coverity CID 2043: Don't leak memory
This commit is contained in:
parent
d06f1825d5
commit
59ffb64e52
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue