Change free to IMAGE_UTIL_SAFE_FREE 97/147897/1 accepted/tizen/unified/20170907.060434 submit/tizen/20170906.051057
authorHaejeong Kim <backto.kim@samsung.com>
Wed, 6 Sep 2017 04:13:21 +0000 (13:13 +0900)
committerHaejeong Kim <backto.kim@samsung.com>
Wed, 6 Sep 2017 04:13:21 +0000 (13:13 +0900)
Change-Id: Icb3ded06af00276fed0fd26ab538ce891a3b29d1

src/image_util.c

index b0854a2..7ea122b 100755 (executable)
@@ -1087,7 +1087,7 @@ int image_util_decode_set_input_path(image_util_decode_h handle, const char *pat
                image_util_error("File read failed");
                fclose(fp);
                fp = NULL;
-               free(src_buffer);
+               IMAGE_UTIL_SAFE_FREE(src_buffer);
                return IMAGE_UTIL_ERROR_INVALID_OPERATION;
        }
 
@@ -1096,13 +1096,13 @@ int image_util_decode_set_input_path(image_util_decode_h handle, const char *pat
                image_util_error("_image_util_decode_create_image_handle failed");
                fclose(fp);
                fp = NULL;
-               free(src_buffer);
+               IMAGE_UTIL_SAFE_FREE(src_buffer);
                return err;
        }
 
        fclose(fp);
        fp = NULL;
-       free(src_buffer);
+       IMAGE_UTIL_SAFE_FREE(src_buffer);
 
        _handle->path = g_strndup(path, strlen(path));