Whamcloud - gitweb
LU-13891 utils: fix memory leak in llapi_ladvise() 10/39610/6
authorJean-Yves VET <jyvet@ddn.com>
Fri, 7 Aug 2020 13:49:36 +0000 (15:49 +0200)
committerOleg Drokin <green@whamcloud.com>
Thu, 26 Nov 2020 09:26:10 +0000 (09:26 +0000)
commit50ce29a3b59a8c2984a928ea062e0b415739724d
tree0c213773618c59b1e32db77b683c67f7ed985c97
parent1741e993c874ed7e243fac08d807872dae6338c7
LU-13891 utils: fix memory leak in llapi_ladvise()

A buffer allocated in llapi_ladvise() for ioctl() is never
released. This patch ensures the buffer is properly freed.

Fixes: e14246641c04 ("LU-4931 ladvise: Add feature of giving file access advices")
Signed-off-by: Jean-Yves VET <jyvet@ddn.com>
Change-Id: I0761e161074ae3029218473ec951670fdbbd33bd
Reviewed-on: https://review.whamcloud.com/39610
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/utils/liblustreapi_ladvise.c