util: remove unnecesary allocation in addWMMenuEntryCallback (Coverity #50161)
commitf2a7f233e3ce1aefafb216d5d4e768da2776ded1
authorChristophe CURIS <christophe.curis@free.fr>
Mon, 16 Jun 2014 18:15:20 +0000 (16 20:15 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 16 Jun 2014 19:00:09 +0000 (16 20:00 +0100)
tree232f9d2f4caae20f122f1f7211f9ca11f07ea56a
parent75511e2ec829cc2ffed94a87fbc2861b8ccb5056
util: remove unnecesary allocation in addWMMenuEntryCallback (Coverity #50161)

As pointed by Coverity, the string passed to 'findPositionInMenu' is not
freed, and as the function does not modify it it is not necessary to
allocate a new storage for the argument.

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