diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2018-10-02 06:12:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-02 06:12:52 -0700 |
commit | 08898cb5ac982c9f160e50731616a5ca27e56a09 (patch) | |
tree | 1c1faa1810bf9976d2bacc4309447427016aec6a | |
parent | abdaf79dac76efcd27ac8c7b719ec8d4107921bd (diff) | |
parent | 4fe1979b9cc5c131a3f90c184159ea55aa5145fa (diff) | |
download | podman-08898cb5ac982c9f160e50731616a5ca27e56a09.tar.gz podman-08898cb5ac982c9f160e50731616a5ca27e56a09.tar.bz2 podman-08898cb5ac982c9f160e50731616a5ca27e56a09.zip |
Merge pull request #1577 from rhatdan/hooks
Need to allocate memory for hook struct
-rw-r--r-- | libpod/container_internal.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |