core,w32: Fix minor potential memleak
authorAndre Heinecke <aheinecke@gnupg.org>
Tue, 9 Apr 2019 12:24:17 +0000 (14:24 +0200)
committerAndre Heinecke <aheinecke@gnupg.org>
Tue, 9 Apr 2019 12:24:17 +0000 (14:24 +0200)
* src/w32-util.c (_gpgme_create_process_utf8): Free converted
startup info strings.

src/w32-util.c

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