Avoid memory leak when failing to read file metadata

This commit is contained in:
Tobias Brunner 2012-09-28 17:10:19 +02:00
parent 3dcffed682
commit a067dfbb2c
1 changed files with 1 additions and 0 deletions

View File

@ -504,6 +504,7 @@ static bool file_metadata(char *pathname, pts_file_metadata_t **entry)
if (stat(pathname, &st))
{
DBG1(DBG_PTS, "unable to obtain statistics about '%s'", pathname);
free(this);
return FALSE;
}