Skip to content

Commit 70850eb

Browse files
assert to ensure that dict buffer type is valid
1 parent 96e55c1 commit 70850eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

programs/fileio.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,8 @@ static void FIO_freeDict(const FIO_Dict_t* dict) {
785785
free(dict->dictBuffer);
786786
} else if (dict->dictBufferType == FIO_mmapDict) {
787787
FIO_munmap(dict->dictBuffer, dict->dictBufferSize);
788+
} else {
789+
assert(0); /* Should not reach this case */
788790
}
789791
}
790792

@@ -2759,6 +2761,8 @@ int FIO_decompressFilename(FIO_ctx_t* const fCtx, FIO_prefs_t* const prefs,
27592761

27602762
int const decodingError = FIO_decompressSrcFile(fCtx, prefs, ress, dstFileName, srcFileName);
27612763

2764+
2765+
27622766
FIO_freeDResources(ress);
27632767
return decodingError;
27642768
}

0 commit comments

Comments
 (0)