Skip to content

Commit

Permalink
refactor: no need to assign ctx again after ffi_gc
Browse files Browse the repository at this point in the history
  • Loading branch information
detailyang committed May 7, 2017
1 parent 2052108 commit 4b26b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ngx/ssl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ function _M.create_ctx(options)
return nil, ffi_str(errmsg[0])
end

ctx = ffi_gc(ctx, C.ngx_http_lua_ffi_ssl_ctx_free)
ffi_gc(ctx, C.ngx_http_lua_ffi_ssl_ctx_free)

local err_buf = get_string_buf(ERR_BUF_SIZE)
local err_buf_len = get_size_ptr()
Expand Down

0 comments on commit 4b26b17

Please sign in to comment.