Skip to content

Commit

Permalink
Add C.free operation to reduce memory leak
Browse files Browse the repository at this point in the history
Signed-off-by: kpango <[email protected]>
  • Loading branch information
kpango committed Sep 8, 2023
1 parent 5b9dd88 commit 4555691
Show file tree
Hide file tree
Showing 13 changed files with 137 additions and 66 deletions.
26 changes: 13 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vdaas/vald

go 1.20
go 1.21

replace (
cloud.google.com/go => cloud.google.com/go v0.110.7
Expand All @@ -13,7 +13,7 @@ replace (
cloud.google.com/go/monitoring => cloud.google.com/go/monitoring v1.15.1
cloud.google.com/go/pubsub => cloud.google.com/go/pubsub v1.33.0
cloud.google.com/go/secretmanager => cloud.google.com/go/secretmanager v1.11.1
cloud.google.com/go/storage => cloud.google.com/go/storage v1.32.0
cloud.google.com/go/storage => cloud.google.com/go/storage v1.33.0
cloud.google.com/go/trace => cloud.google.com/go/trace v1.10.1
code.cloudfoundry.org/bytefmt => code.cloudfoundry.org/bytefmt v0.0.0-20230612151507-41ef4d1f67a4
contrib.go.opencensus.io/exporter/aws => contrib.go.opencensus.io/exporter/aws v0.0.0-20230502192102-15967c811cec
Expand All @@ -22,7 +22,7 @@ replace (
git.sr.ht/~sbinet/gg => git.sr.ht/~sbinet/gg v0.5.0
github.com/Azure/azure-amqp-common-go/v3 => github.com/Azure/azure-amqp-common-go/v3 v3.2.3
github.com/Azure/azure-sdk-for-go => github.com/Azure/azure-sdk-for-go v68.0.0+incompatible
github.com/Azure/azure-sdk-for-go/sdk/azcore => github.com/Azure/azure-sdk-for-go/sdk/azcore v1.7.1
github.com/Azure/azure-sdk-for-go/sdk/azcore => github.com/Azure/azure-sdk-for-go/sdk/azcore v1.7.2
github.com/Azure/azure-sdk-for-go/sdk/azidentity => github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.3.1
github.com/Azure/azure-sdk-for-go/sdk/internal => github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0
github.com/Azure/go-amqp => github.com/Azure/go-amqp v1.0.2
Expand All @@ -43,7 +43,7 @@ replace (
github.com/ajstarks/svgo => github.com/ajstarks/svgo v0.0.0-20211024235047-1546f124cd8b
github.com/antihax/optional => github.com/antihax/optional v1.0.0
github.com/armon/go-socks5 => github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5
github.com/aws/aws-sdk-go => github.com/aws/aws-sdk-go v1.45.3
github.com/aws/aws-sdk-go => github.com/aws/aws-sdk-go v1.45.5
github.com/aws/aws-sdk-go-v2 => github.com/aws/aws-sdk-go-v2 v1.21.0
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream => github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.13
github.com/aws/aws-sdk-go-v2/config => github.com/aws/aws-sdk-go-v2/config v1.18.39
Expand Down Expand Up @@ -100,7 +100,7 @@ replace (
github.com/fsnotify/fsnotify => github.com/fsnotify/fsnotify v1.6.0
github.com/gin-contrib/sse => github.com/gin-contrib/sse v0.1.0
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.9.1
github.com/go-errors/errors => github.com/go-errors/errors v1.4.2
github.com/go-errors/errors => github.com/go-errors/errors v1.5.0
github.com/go-fonts/dejavu => github.com/go-fonts/dejavu v0.2.0
github.com/go-fonts/latin-modern => github.com/go-fonts/latin-modern v0.3.1
github.com/go-fonts/liberation => github.com/go-fonts/liberation v0.3.1
Expand Down Expand Up @@ -153,7 +153,7 @@ replace (
github.com/google/gofuzz => github.com/google/gofuzz v1.2.0
github.com/google/martian => github.com/google/martian v2.1.0+incompatible
github.com/google/martian/v3 => github.com/google/martian/v3 v3.3.2
github.com/google/pprof => github.com/google/pprof v0.0.0-20230901174712-0191c66da455
github.com/google/pprof => github.com/google/pprof v0.0.0-20230907193218-d3ddc7976beb
github.com/google/shlex => github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
github.com/google/subcommands => github.com/google/subcommands v1.2.0
github.com/google/uuid => github.com/google/uuid v1.3.1
Expand Down Expand Up @@ -295,7 +295,7 @@ replace (
golang.org/x/exp/typeparams => golang.org/x/exp/typeparams v0.0.0-20230905200255-921286631fa9
golang.org/x/image => golang.org/x/image v0.12.0
golang.org/x/lint => golang.org/x/lint v0.0.0-20210508222113-6edffad5e616
golang.org/x/mobile => golang.org/x/mobile v0.0.0-20230906021930-dc64209e86f1
golang.org/x/mobile => golang.org/x/mobile v0.0.0-20230906132913-2077a3224571
golang.org/x/mod => golang.org/x/mod v0.12.0
golang.org/x/net => golang.org/x/net v0.15.0
golang.org/x/oauth2 => golang.org/x/oauth2 v0.12.0
Expand All @@ -310,12 +310,12 @@ replace (
gonum.org/v1/gonum => gonum.org/v1/gonum v0.14.0
gonum.org/v1/hdf5 => gonum.org/v1/hdf5 v0.0.0-20210714002203-8c5d23bc6946
gonum.org/v1/plot => gonum.org/v1/plot v0.14.0
google.golang.org/api => google.golang.org/api v0.138.0
google.golang.org/api => google.golang.org/api v0.139.0
google.golang.org/appengine => google.golang.org/appengine v1.6.8
google.golang.org/genproto => google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d
google.golang.org/genproto/googleapis/api => google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d
google.golang.org/genproto/googleapis/rpc => google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d
google.golang.org/grpc => google.golang.org/grpc v1.57.0
google.golang.org/grpc => google.golang.org/grpc v1.58.0
google.golang.org/grpc/cmd/protoc-gen-go-grpc => google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0
google.golang.org/protobuf => google.golang.org/protobuf v1.31.0
gopkg.in/check.v1 => gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
Expand Down Expand Up @@ -348,7 +348,7 @@ require (
cloud.google.com/go/storage v1.31.0
code.cloudfoundry.org/bytefmt v0.0.0-20190710193110-1eb035ffe2b6
github.com/aws/aws-sdk-go v1.44.314
github.com/envoyproxy/protoc-gen-validate v1.0.1
github.com/envoyproxy/protoc-gen-validate v1.0.2
github.com/fsnotify/fsnotify v1.6.0
github.com/go-redis/redis/v8 v8.0.0-00010101000000-000000000000
github.com/go-sql-driver/mysql v1.7.1
Expand Down Expand Up @@ -391,7 +391,7 @@ require (
golang.org/x/sync v0.3.0
golang.org/x/sys v0.12.0
golang.org/x/text v0.13.0
golang.org/x/tools v0.12.1-0.20230818130535-1517d1a3ba60
golang.org/x/tools v0.13.0
gonum.org/v1/hdf5 v0.0.0-00010101000000-000000000000
gonum.org/v1/plot v0.10.1
google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d
Expand Down Expand Up @@ -445,7 +445,7 @@ require (
github.com/google/btree v1.0.1 // indirect
github.com/google/gnostic v0.5.7-v3refs // indirect
github.com/google/gofuzz v1.1.0 // indirect
github.com/google/s2a-go v0.1.5 // indirect
github.com/google/s2a-go v0.1.7 // indirect
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
github.com/google/wire v0.5.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.5 // indirect
Expand Down Expand Up @@ -490,7 +490,7 @@ require (
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/crypto v0.13.0 // indirect
golang.org/x/exp/typeparams v0.0.0-20230307190834-24139beb5833 // indirect
golang.org/x/image v0.11.0 // indirect
golang.org/x/image v0.12.0 // indirect
golang.org/x/mod v0.12.0 // indirect
golang.org/x/term v0.12.0 // indirect
golang.org/x/time v0.3.0 // indirect
Expand Down
Loading

0 comments on commit 4555691

Please sign in to comment.