commit | fafbc202cd3c6ff1dc77430176c4c41102ebbdfd | [log] [tgz] |
---|---|---|
author | Jesper Juhl <jj@chaosbits.net> | Tue Aug 07 21:44:54 2012 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Aug 13 19:32:13 2012 -0700 |
tree | 40266b9a49ad478720c2b65338591fb8502c7ecc | |
parent | 935d59ff255896515741c1e5f00f28e630d1c3cf [diff] |
staging: speakup: i18n.c: Fix leak in msg_set() If we end up returning -EINVAL from the function we will leak the memory allocated to 'newstr' which has been allocated but not yet assigned to anything. Fix the leak by properly freeing the memory again before we return. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>