]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client/Client.cc: fix realloc memory leak
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 12 Aug 2015 16:38:38 +0000 (18:38 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 9 Sep 2015 13:36:44 +0000 (15:36 +0200)
commit4f98dab99c35663de89a06e2dfdbd874f56aed41
treeb0d46243584337545687358171b9a07b409561c4
parent384d7f4c3c45cab511c85dcce5b56be415b37780
client/Client.cc: fix realloc memory leak

Fix handling of realloc. If realloc() fails it returns NULL, assigning
the return value of realloc() directly to the pointer without checking
for the result will lead to a memory leak.

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