Skip to content

Commit e352329

Browse files
committed
Fix to 8e9076d: returning nullptr when failing to parse Casson format.
1 parent 8e9076d commit e352329

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/snappy/extensions/Orb/kernel/unix_kit/casson_io.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ static CassonFormat *read_casson_struct(
318318
CassonFormat * cf = NEW_STRUCT(CassonFormat);
319319
if (!fill_casson_struct(cf, str)) {
320320
free_casson_format(cf);
321+
return NULL;
321322
}
322323

323324
return cf;

0 commit comments

Comments
 (0)