aboutsummaryrefslogtreecommitdiff
path: root/libpod/container_internal.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-10-02 05:46:58 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2018-10-02 05:47:29 -0400
commit4fe1979b9cc5c131a3f90c184159ea55aa5145fa (patch)
treecc4cb21d543681d831575d1c791400c815a8b903 /libpod/container_internal.go
parent3bdccd8a461217ac6d0094c2081f50612d60c19a (diff)
downloadpodman-4fe1979b9cc5c131a3f90c184159ea55aa5145fa.tar.gz
podman-4fe1979b9cc5c131a3f90c184159ea55aa5145fa.tar.bz2
podman-4fe1979b9cc5c131a3f90c184159ea55aa5145fa.zip
Need to allocate memory for hook struct
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod/container_internal.go')
-rw-r--r--libpod/container_internal.go2
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 {