]> 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)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 22 Apr 2014 18:36:32 +0000 (20:36 +0200)
commit6d8fbc8b818c9f23a538f1586ee055b1dd7a7f2f
treed57679d1ff2ee50b9cc5fdbeaca24183d419add2
parent9e6b3483a36a79d177a2e45d5775f5555827761b
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>
src/jerasure.c