shell32: Prevent double free (Coverity).

If we get an error, we might get a double free otherwise.

Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
This commit is contained in:
Fabian Maurer 2022-11-02 04:39:06 +01:00 committed by Alexandre Julliard
parent f2459fa869
commit 0458949263

View file

@ -403,6 +403,7 @@ static DWORD parse_dde_command(HSZ hszTopic, WCHAR *command)
}
free(opcode);
opcode = NULL;
for (i = 0; i < argc; i++) free(argv[i]);
free(argv);