]> git-server-git.apps.pok.os.sepia.ceph.com Git - jerasure.git/commit
jerasure.c: fix memory leak in error case
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 22 Mar 2014 21:08:06 +0000 (22:08 +0100)
committerLoic Dachary <loic@dachary.org>
Mon, 10 Apr 2017 08:23:37 +0000 (10:23 +0200)
commitfa1ea7133b5932967bc8dabb763a84fb87d3e54a
treebd78b36c5c67d9c915c478f9827364d571d3d799
parentff7032153ea230fb59596f1f8a0e9ad8653addfb
jerasure.c: fix memory leak in error case

Check matrix for NULL before call talloc().

CID 1093213 (#1 of 1): Resource leak (RESOURCE_LEAK)
 4. leaked_storage: Variable "bitmatrix" going out of scope
 leaks the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
(cherry picked from commit 6d8fbc8b818c9f23a538f1586ee055b1dd7a7f2f)
src/jerasure.c