Fix parseCommandLine() function
Fix parseCommandLine() function

'buf' variable was leaking in case of an error. 'args' variable was
leaking in the success case (it has to be freed with LocalFree). Also,
reserve the necessary amount of elements in the result string list

Change-Id: Ia2a1ea7350baa07533e3f742926f2a9cc12bb29c
Reviewed-by: Christian Kandeler <3aa99dcdd3f0cac61fb81c2a11771c0cc2497607@qt.io>

qtproject/qt-labs-qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qt-labs/qbs,qt-labs/qbs,qt-labs/qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs