]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test_librbd.cc: fix USE_AFTER_FREE
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 12 Mar 2015 20:55:33 +0000 (21:55 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 12 Mar 2015 20:55:33 +0000 (21:55 +0100)
commitd4b8d9011929d534e5c98f0f19ab85bee8aeb971
tree45ebd3fff11d07540d22d56101d83ef82aa41b50
parente6161b7bd269e04376ef07f3b9b839515567930f
test_librbd.cc: fix USE_AFTER_FREE

Fix for:
CID 1251462 (#1 of 1): Use after free (USE_AFTER_FREE)
1. alias: Assigning: cur_name = names. Now both point to the same storage.
3. freed_arg: free frees names.
6. pass_freed_arg: Passing freed pointer cur_name as an argument to printf.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/test/librbd/test_librbd.cc