Bugfix: Correct allocation check in blkmk_init_generation
This commit is contained in:
@@ -78,7 +78,7 @@ uint64_t blkmk_init_generation(blktemplate_t *tmpl, void *script, size_t scripts
|
|||||||
off += 4;
|
off += 4;
|
||||||
|
|
||||||
struct blktxn_t *txn = calloc(1, sizeof(*tmpl->cbtxn));
|
struct blktxn_t *txn = calloc(1, sizeof(*tmpl->cbtxn));
|
||||||
if (!tmpl->cbtxn)
|
if (!txn)
|
||||||
{
|
{
|
||||||
free(data);
|
free(data);
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user