fix undefined behavior issue on Integrity
authorKonstantin Ritt <ritt.ks@gmail.com>
Tue, 17 Apr 2012 14:07:15 +0000 (17:07 +0300)
committerQt by Nokia <qt-info@nokia.com>
Thu, 19 Apr 2012 13:58:03 +0000 (15:58 +0200)
commitd48f3fc1e74f4d489238f511df56a134b53e6a0b
tree11092fe88e569e16838013ec42a444a965ea5adc
parentf4d02ecdbf54987a0bada20fe8f8537e90c051d8
fix undefined behavior issue on Integrity

in contrast to ::strdup(), qstrdup() allocates memory via new[];
deallocating this memory with free() leads to undefine behavior.

Change-Id: I0692c4bef010c05de547283b00b6c6043ac24c79
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
mkspecs/unsupported/integrity-ghs/qplatformdefs.h
src/corelib/io/qprocess_unix.cpp