diff options
author | Zhang Huan <zhanghuan@open-fs.com> | 2018-07-23 15:27:41 +0800 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-07-28 07:21:12 +0000 |
commit | 75300258c42aeb29350ac55beb3360ca208454b5 (patch) | |
tree | 68fe2e6bc2b49e5049c9518ef11c9dc41fc84992 /rpc/rpc-lib/src/rpc-transport.c | |
parent | a6b5ec5cb5e2fb429b51c0d2b064fbd96c9de80c (diff) |
libgfapi: fix memory leak on old volume files
Fix missing free of fs->oldvolfile. This patch uses standard
calloc/realloc to allocate memory for vol file. As by the time fs struct
is destroyed, the THIS->ctx is already gone, that causes invalid memory
access.
Change-Id: I72ae19c76eb16e61f077714f7e52405fee721997
fixes: bz#1607689
Signed-off-by: Zhang Huan <zhanghuan@open-fs.com>
Diffstat (limited to 'rpc/rpc-lib/src/rpc-transport.c')
0 files changed, 0 insertions, 0 deletions