Skip to content
Commit 0fa2c8eb authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman
Browse files

ppdev: don't print a free'd string

A previous fix of a memory leak now prints the string 'name'
that was previously free'd.  Fix this by free'ing the string
at the end of the function and adding an error exit path for
the error conditions.

CoverityScan CID#1384523 ("Use after free")

Fixes: 2bd362d5

 ("ppdev: fix memory leak")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarSudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5b11ebed
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment