commit | 8461e15251eca1555bc6c5e38e778bf45d3c9d70 | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Tue Oct 01 14:44:30 2019 -0700 |
committer | Scott Baker <smbaker@gmail.com> | Tue Oct 01 17:59:35 2019 -0700 |
tree | 7a1228d7aea5278060431d2829e4778f3b2864e3 | |
parent | acf0adaf2d91ae72b55192cc8a939e0485918d16 [diff] [blame] |
VOL-1967 move api-server to separate repository Change-Id: I21b85be74205805be15f8a85e53a903d16785671
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) }