exif: always call proc_close (#663)

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/672/head
Varun Patil 2023-05-25 11:00:27 -07:00
parent 1f2b8d3186
commit ca8e447409
1 changed files with 3 additions and 0 deletions

View File

@ -280,6 +280,7 @@ class Exif
fclose($pipes[1]); fclose($pipes[1]);
fclose($pipes[2]); fclose($pipes[2]);
proc_terminate($proc); proc_terminate($proc);
proc_close($proc);
if (false !== strpos($stdout, 'error')) { if (false !== strpos($stdout, 'error')) {
error_log("Exiftool error: {$stdout}"); error_log("Exiftool error: {$stdout}");
@ -323,6 +324,7 @@ class Exif
fclose($pipes[1]); fclose($pipes[1]);
fclose($pipes[2]); fclose($pipes[2]);
proc_terminate($proc); proc_terminate($proc);
proc_close($proc);
} }
} }
@ -421,6 +423,7 @@ class Exif
fclose($pipes[1]); fclose($pipes[1]);
fclose($pipes[2]); fclose($pipes[2]);
proc_terminate($proc); proc_terminate($proc);
proc_close($proc);
} }
} }