Fix resource leak in the STREAM_CLOSE path. io-streamid
authorAndrzej Jakowski <andrzej.jakowski@intel.com>
Wed, 27 Jul 2016 19:17:24 +0000 (12:17 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 27 Jul 2016 19:32:35 +0000 (13:32 -0600)
commitba5957d07cac94a0c3f24f1f97003256908b5356
treed462d03801b7ec83ad889fb708c45414bd20f9dc
parent77412dffcdaf030b48567dff77ca8cbbe2120913
Fix resource leak in the STREAM_CLOSE path.

Allocated stream identifier (alloc_id) nor closed stream_id has never
been deallocated in the STREAM_CLOSE path, causing issues when closed
stream was reopened again. This patch fixes that problem.

Signed-off-by: Andrzej Jakowski <andrzej.jakowski@intel.com>
Signed-off-by: Kapil Karkra <kapil.karkra@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/read_write.c