Skip to content

Commit 723a6f3

Browse files
committed
Fix exiftool is not released
1 parent 33918b9 commit 723a6f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/command/process.go

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ func ProcessFiles(cmd *cobra.Command, cfgPath, sourceDir, targetDir string, acti
2020
if err != nil {
2121
return err
2222
}
23+
defer func() {
24+
if closeErr := et.Close(); closeErr != nil {
25+
cmd.Printf("failed to close exiftool: %s", closeErr.Error())
26+
}
27+
}()
2328

2429
// Load and parse configuration
2530
cfg, err := vault.ReadConfigFromFile(cfgPath)

0 commit comments

Comments
 (0)