]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/FileStore.cc: fix realloc memory leak in error case
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 8 Feb 2013 15:54:33 +0000 (16:54 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 16 Feb 2013 17:38:47 +0000 (18:38 +0100)
commitb0c6be95b03d9f3dd2badcdcff359ae7bc9684f4
treee4ae4f82c722d0af512bedbf8035648f354709fe
parentf3e5cedbc11005701ac0a8e70909a6372cd2fe6f
os/FileStore.cc: fix realloc memory leak in error case

Fix error from cppcheck:

[src/os/FileStore.cc:512]: (error) Common realloc mistake: 'fiemap'
  nulled but not freed upon failure

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
(cherry picked from commit c92a0f552587a232f66620170660d6b2ab6fb3a5)
src/os/FileStore.cc