]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: Coverity, resource leak, CID #121357, Mat needs to be free
authoriceman1001 <iceman@iuse.se>
Tue, 12 Jan 2016 22:56:15 +0000 (23:56 +0100)
committericeman1001 <iceman@iuse.se>
Tue, 12 Jan 2016 22:56:15 +0000 (23:56 +0100)
client/reveng/reveng.c

index 3c6da126ab136b24f836dc983db1c07276bfd72e..dd50987c308fd7b47c2ccc503e99289b8897880c 100644 (file)
@@ -257,6 +257,7 @@ engini(int *resc, model_t **result, const poly_t divisor, int flags, int args, c
                palloc(&apoly, dlen);
                calini(resc, result, divisor, flags, apoly, args, argpolys);
                pfree(&apoly);
                palloc(&apoly, dlen);
                calini(resc, result, divisor, flags, apoly, args, argpolys);
                pfree(&apoly);
+               free(mat);
                return;
        }
 
                return;
        }
 
Impressum, Datenschutz