summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2018-06-29 14:29:18 -0700
committerJohn Stebbins <[email protected]>2018-06-29 14:29:18 -0700
commit40a48b75ff4c15bfa812f517cb7a32cfd8e1e8c7 (patch)
treed62db0f1c689362aebb7ddfe44d7c630493c566b /libhb
parent79825db0caa3a5d7cd6293eefdc095e7884b1b56 (diff)
nvenc: fix crash in nvenc_load_functions
nvenc_load_functions tries to free the input NvencFunctions before loading. Set pointer to NULL to prevent free of invalid pointer.
Diffstat (limited to 'libhb')
-rw-r--r--libhb/nvenc_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/nvenc_common.c b/libhb/nvenc_common.c
index 6d1fcead6..15e5c9ab5 100644
--- a/libhb/nvenc_common.c
+++ b/libhb/nvenc_common.c
@@ -37,7 +37,7 @@ int hb_check_nvenc_available()
#ifdef USE_NVENC
uint32_t nvenc_ver;
void *context;
- NvencFunctions *nvenc_dl;
+ NvencFunctions *nvenc_dl = NULL;
int loadErr = nvenc_load_functions(&nvenc_dl, context);
if (loadErr < 0) {