]> 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 09:15:11 +0000 (11:15 +0200)
commitf55106369a4c926c8d7995fbcf4c4f4799bcaa0a
treebd78b36c5c67d9c915c478f9827364d571d3d799
parent02731df4c1eae1819c4453c9d3ab6d408cadd085
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