diff options
author | Frank Barchard <fbarchard@google.com> | 2023-10-27 10:12:13 -0700 |
---|---|---|
committer | libyuv LUCI CQ <libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-10-27 17:41:36 +0000 |
commit | 31e1d6f896615342d5d5b6bde8f7b50b3fd698dc (patch) | |
tree | 685ffd3182496e78e4e23c45fdd3729501cca38c /include | |
parent | 331c361581896292fb46c8c6905e41262b7ca95f (diff) | |
download | libyuv-31e1d6f896615342d5d5b6bde8f7b50b3fd698dc.tar.gz |
Check allocations that return NULL and return early
BUG=libyuv:968
Change-Id: I9e8594440a6035958511f9c50072820131331fc8
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4977552
Reviewed-by: Wan-Teh Chang <wtc@google.com>
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libyuv/row.h | 8 | ||||
-rw-r--r-- | include/libyuv/version.h | 2 |
2 files changed, 1 insertions, 9 deletions
diff --git a/include/libyuv/row.h b/include/libyuv/row.h index 36561d6e..46685a50 100644 --- a/include/libyuv/row.h +++ b/include/libyuv/row.h @@ -949,14 +949,6 @@ struct YuvConstants { free(var##_mem); \ var = NULL -#define align_buffer_64_16(var, size) \ - void* var##_mem = malloc((size)*2 + 63); /* NOLINT */ \ - uint16_t* var = (uint16_t*)(((intptr_t)var##_mem + 63) & ~63) /* NOLINT */ - -#define free_aligned_buffer_64_16(var) \ - free(var##_mem); \ - var = NULL - #if defined(__APPLE__) || defined(__x86_64__) || defined(__llvm__) #define OMITFP #else diff --git a/include/libyuv/version.h b/include/libyuv/version.h index e78a4fee..569cb49b 100644 --- a/include/libyuv/version.h +++ b/include/libyuv/version.h @@ -11,6 +11,6 @@ #ifndef INCLUDE_LIBYUV_VERSION_H_ #define INCLUDE_LIBYUV_VERSION_H_ -#define LIBYUV_VERSION 1878 +#define LIBYUV_VERSION 1879 #endif // INCLUDE_LIBYUV_VERSION_H_ |