diff options
Diffstat (limited to 'src/ipc')
-rwxr-xr-x | src/ipc/media-thumb-ipc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ipc/media-thumb-ipc.c b/src/ipc/media-thumb-ipc.c index add4ba3..53f3ba2 100755 --- a/src/ipc/media-thumb-ipc.c +++ b/src/ipc/media-thumb-ipc.c @@ -581,6 +581,8 @@ static char* _media_thumb_get_default_path(uid_t uid) grpinfo = getgrnam("users"); if(grpinfo == NULL) { thumb_err("getgrnam(users) returns NULL !"); + if(result_psswd) + free(result_psswd); return NULL; } } @@ -682,8 +684,7 @@ int _media_thumb_process(thumbMsg *req_msg, thumbMsg *res_msg, uid_t uid) thumb_path[strlen(thumb_path)] = '\0'; } - if (g_file_test(thumb_path, - G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR)) { + if (g_file_test(thumb_path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR)) { thumb_warn("thumb path already exists in file system.. remove the existed file"); _media_thumb_remove_file(thumb_path); } |