core,w32: Fix minor potential memleak

* src/w32-util.c (_gpgme_create_process_utf8): Free converted
startup info strings.
This commit is contained in:
Andre Heinecke 2019-04-09 14:24:17 +02:00
parent ecbba12b86
commit 140d694e1f
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C

View File

@ -887,6 +887,8 @@ int _gpgme_create_process_utf8 (const char *application_name_utf8,
working_directory, working_directory,
si ? &siw : NULL, si ? &siw : NULL,
lpProcessInformation); lpProcessInformation);
free (siw.lpTitle);
free (siw.lpDesktop);
free (application_name); free (application_name);
free (command_line); free (command_line);
free (working_directory); free (working_directory);