sg: add missing free(msg); in ->errdetails() handler
authorTomohiro Kusumi <tkusumi@tuxera.com>
Mon, 12 Jun 2017 20:02:06 +0000 (23:02 +0300)
committerJens Axboe <axboe@fb.com>
Mon, 12 Jun 2017 20:51:01 +0000 (14:51 -0600)
commitb63fe8bec4c7f5defe6b6842b4d251ecc67add60
tree66498878c204cc29146f1454707ad2eaa9b11aba
parent85c705e55c2bbeb3c74d96ef4ec1ae90203c4083
sg: add missing free(msg); in ->errdetails() handler

msg gets malloc'd unconditionally, so we need to free msg if we're
not using msg for ret (strdup isn't really needed here to begin with).

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
engines/sg.c