commit | 8487c5da136ee6f3c3acbad25681bd6b51238fad | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Fri Oct 18 12:49:46 2019 -0700 |
committer | Scott Baker <smbaker@gmail.com> | Fri Oct 18 13:28:20 2019 -0700 |
tree | ba32f95038ff5a31598fb972c2d58d08d20cf6d4 | |
parent | 5620c670c6fce4df3dc06a6a1ffceb3c3472fc9e [diff] [blame] |
VOL-2112 move to voltha-lib-go Change-Id: I3435b8acb982deeab6b6ac28e798d7722ad01d0a
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) }