From 4fe1979b9cc5c131a3f90c184159ea55aa5145fa Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Tue, 2 Oct 2018 05:46:58 -0400 Subject: Need to allocate memory for hook struct Signed-off-by: Daniel J Walsh --- libpod/container_internal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpod') diff --git a/libpod/container_internal.go b/libpod/container_internal.go index c88794212..0642c5aad 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -1286,7 +1286,7 @@ func (c *Container) setupOCIHooks(ctx context.Context, config *spec.Spec) (exten } } - var allHooks map[string][]spec.Hook + allHooks := make(map[string][]spec.Hook) for _, hDir := range c.runtime.config.HooksDir { manager, err := hooks.New(ctx, []string{hDir}, []string{"poststop"}, lang) if err != nil { -- cgit v1.2.3-54-g00ecf