Coverity reports a resource leak here as we were not freeing
'sanitized_path' inside the if statement.
Fixes CID1367502
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
sanitized_path = eina_file_path_sanitize(path);
DBG("ethumb=%p, path=%s, key=%s", e, sanitized_path ? sanitized_path : "", key ? key : "");
- if (sanitized_path && access(sanitized_path, R_OK)) return EINA_FALSE;
+ if (sanitized_path && access(sanitized_path, R_OK))
+ {
+ free(sanitized_path);
+ return EINA_FALSE;
+ }
eina_stringshare_replace(&e->src_hash, NULL);
eina_stringshare_replace(&e->src_path, sanitized_path);