]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client/SyntheticClient.cc: fix another memory leak
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 10 May 2013 13:54:46 +0000 (15:54 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 10 May 2013 22:02:56 +0000 (00:02 +0200)
commit4b3a7dcb5431f319e81f2bf5f07ecca0f40a8329
tree719bb8f3b25f636b3f0631693cae84e340554560
parentb9fbc8212e685d6db32d81e4f743c5c01eba4b64
client/SyntheticClient.cc: fix another memory leak

Fix memory leak in read_random: call delete[] on buf before
call new[] again in the for-loop.

CID 717071 Resource leak (CWE-404)

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