diff options
author | Stefan Schmidt <stefan@osg.samsung.com> | 2016-12-12 16:18:18 +0100 |
---|---|---|
committer | Stefan Schmidt <stefan@osg.samsung.com> | 2016-12-12 16:44:02 +0100 |
commit | c9e761da548342aa6271352de1d015ed2ebf42a1 (patch) | |
tree | 94b9aa19a930190bf1befc39c78a8f28e3518254 /src/lib/ethumb/ethumb.c | |
parent | c1b20aa1fbc6f82f06521117da5a4c5c2dfbb3b1 (diff) |
ethumb: fix resource leak introduced in file path sanitization rework
This extra snaitized path assign path does not make sense and leads to a leak
in the end. We already have sanitized_path and handle that correctly.
Fixes 62a0c41fd3bf8796efec55db52395f13a78fb27f
CID: 1366925
Diffstat (limited to 'src/lib/ethumb/ethumb.c')
-rw-r--r-- | src/lib/ethumb/ethumb.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/ethumb/ethumb.c b/src/lib/ethumb/ethumb.c index 7b8f4f008a..b66c3f41c2 100644 --- a/src/lib/ethumb/ethumb.c +++ b/src/lib/ethumb/ethumb.c | |||
@@ -1098,7 +1098,6 @@ ethumb_thumb_path_set(Ethumb *e, const char *path, const char *key) | |||
1098 | else | 1098 | else |
1099 | { | 1099 | { |
1100 | sanitized_path = eina_file_path_sanitize(path); | 1100 | sanitized_path = eina_file_path_sanitize(path); |
1101 | path = eina_file_path_sanitize(path); | ||
1102 | eina_stringshare_replace(&e->thumb_path, sanitized_path); | 1101 | eina_stringshare_replace(&e->thumb_path, sanitized_path); |
1103 | eina_stringshare_replace(&e->thumb_key, key); | 1102 | eina_stringshare_replace(&e->thumb_key, key); |
1104 | free(sanitized_path); | 1103 | free(sanitized_path); |