commit | 611f6bdfdc96cb90aca1c20bc7fe5c76e30dfd44 | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Fri Oct 18 13:45:19 2019 -0700 |
committer | Scott Baker <smbaker@gmail.com> | Fri Oct 18 13:46:21 2019 -0700 |
tree | 317d51f5cee7825c7dc3a83ac28ae08cc4cb8731 | |
parent | 531322b23cb0ae5e08f57f6d975f6c4d032a4e33 [diff] [blame] |
VOL-2112 move to voltha-lib-go Change-Id: Ic1af08003c1d2c698c0cce371e64f47b47b8d875
diff --git a/vendor/github.com/DataDog/zstd/zstd_stream.go b/vendor/github.com/DataDog/zstd/zstd_stream.go index d5d1336..2330353 100644 --- a/vendor/github.com/DataDog/zstd/zstd_stream.go +++ b/vendor/github.com/DataDog/zstd/zstd_stream.go
@@ -11,6 +11,7 @@ "errors" "fmt" "io" + "runtime" "unsafe" ) @@ -243,6 +244,8 @@ unsafe.Pointer(&src[0]), &cSrcSize)) + // Keep src here eventhough, we reuse later, the code might be deleted at some point + runtime.KeepAlive(src) if err = getError(retCode); err != nil { return 0, fmt.Errorf("failed to decompress: %s", err) }