Commit bffcb2c
committed
rgw/rgw_rados.cc: close resource leak in error case
Fix for:
CID 1297867 (#1 of 1): Resource leak (RESOURCE_LEAK)
alloc_arg: put_obj_init allocates memory that is stored into
out_stream_req.
leaked_storage: Variable out_stream_req going out of scope leaks
the storage it points to.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>1 parent b43497c commit bffcb2c
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4122 | 4122 | | |
4123 | 4123 | | |
4124 | 4124 | | |
4125 | | - | |
| 4125 | + | |
| 4126 | + | |
4126 | 4127 | | |
| 4128 | + | |
4127 | 4129 | | |
4128 | 4130 | | |
4129 | 4131 | | |
| |||
0 commit comments