aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-09-28 17:10:19 +0200
committerTobias Brunner <tobias@strongswan.org>2012-09-28 17:10:19 +0200
commita067dfbb2c1162d2c6b0c99ff9e3ad0101a6acc4 (patch)
tree0a45bb00723407ac7bd200374a38d2563da3734b /src
parent3dcffed682987ba627e79bbdfe6ffe1b981c04bf (diff)
downloadstrongswan-a067dfbb2c1162d2c6b0c99ff9e3ad0101a6acc4.tar.bz2
strongswan-a067dfbb2c1162d2c6b0c99ff9e3ad0101a6acc4.tar.xz
Avoid memory leak when failing to read file metadata
Diffstat (limited to 'src')
-rw-r--r--src/libpts/pts/pts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libpts/pts/pts.c b/src/libpts/pts/pts.c
index e8dfe5b58..4c6c5bc22 100644
--- a/src/libpts/pts/pts.c
+++ b/src/libpts/pts/pts.c
@@ -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;
}