diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-09-28 17:10:19 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-09-28 17:10:19 +0200 |
commit | a067dfbb2c1162d2c6b0c99ff9e3ad0101a6acc4 (patch) | |
tree | 0a45bb00723407ac7bd200374a38d2563da3734b /src | |
parent | 3dcffed682987ba627e79bbdfe6ffe1b981c04bf (diff) | |
download | strongswan-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.c | 1 |
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; } |