mirror of
https://github.com/containers/podman.git
synced 2025-05-22 09:36:57 +08:00
Need to allocate memory for hook struct
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -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 {
|
for _, hDir := range c.runtime.config.HooksDir {
|
||||||
manager, err := hooks.New(ctx, []string{hDir}, []string{"poststop"}, lang)
|
manager, err := hooks.New(ctx, []string{hDir}, []string{"poststop"}, lang)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user