]> git.baikalelectronics.ru Git - kernel.git/commit
orangefs: fix memory leak of string 'new' on exit path
authorColin Ian King <colin.king@canonical.com>
Fri, 2 Dec 2016 15:18:06 +0000 (15:18 +0000)
committerMike Marshall <hubcap@omnibond.com>
Mon, 12 Dec 2016 16:43:25 +0000 (11:43 -0500)
commit0697565034599043780df30476555fd2aaafcf7f
tree188a7ac96b34b16c7f2d5cb831f3bf2b86ebb2e2
parent1a15d479fbe95c71a619b25f1f65829fe8af40b4
orangefs: fix memory leak of string 'new' on exit path

allocates string 'new' is not free'd on the exit path when
cdm_element_count <= 0. Fix this by kfree'ing it.

Fixes CoverityScan CID#1375923 "Resource Leak"

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/orangefs-debugfs.c