WUtil: fix improper use of de-allocated variable (Coverity #109618)
commit6ef343ed8795532c8936889a42873735157f0bae
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 25 Apr 2015 10:44:28 +0000 (25 12:44 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 25 Apr 2015 11:53:06 +0000 (25 07:53 -0400)
treef57b5b72690fdb17afd0460af6db2379561574f3
parent032f6587d9fba057744209bc5b3b819b5bfd6b08
WUtil: fix improper use of de-allocated variable (Coverity #109618)

As pointed by Coverity, the variable 'path_dst' was first free'd, then it
was used in the 'unlink' function.

This patch fixes the call order to de-allocate the string only when it is
no more needed.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WINGs/findfile.c