added missing installCommand deallocation to auto-update

NOTE: function 'replaceWord' returns allocated text
This commit is contained in:
Václav Šmejkal 2022-06-21 19:14:06 +02:00
parent 7471d8eaa4
commit c3e7caf4b3
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -190,6 +190,8 @@ unsigned char checkVersion(inputFlags flags)
//REMOVE versions.json - OTHERWISE WILL CAUSE SEGFAULT IN NEXT RUN //REMOVE versions.json - OTHERWISE WILL CAUSE SEGFAULT IN NEXT RUN
remove(VERSIONS_NAME); remove(VERSIONS_NAME);
free(installCommand);
//CHECK FOR ERRORS //CHECK FOR ERRORS
if (installCode != 0) if (installCode != 0)
{ {