Change-Id: Icb3ded06af00276fed0fd26ab538ce891a3b29d1
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;
}
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));