]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
common/Checksummer.h: close resource leak
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 31 Jan 2017 19:41:32 +0000 (20:41 +0100)
committerSage Weil <sage@redhat.com>
Thu, 9 Feb 2017 02:54:25 +0000 (21:54 -0500)
CID 1395784 (#2-1 of 2): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable state going out of scope
 leaks the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/common/Checksummer.h

index 09280f929d975a40d89f8cdac80dfa50c2ebd529..396778b1c96485d291b6de5b4005e254237ae5e2 100644 (file)
@@ -223,6 +223,7 @@ public:
        if (bad_csum) {
          *bad_csum = v;
        }
+       Alg::fini(&state);
        return pos;
       }
       ++pv;