File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ static int32_t open_file(
216
216
return ZONE_READ_ERROR ;
217
217
}
218
218
219
- if (!(file -> buffer .data = malloc (ZONE_WINDOW_SIZE + 1 )))
219
+ if (!(file -> buffer .data = malloc (ZONE_WINDOW_SIZE + ZONE_PADDING_SIZE + 1 )))
220
220
return ZONE_OUT_OF_MEMORY ;
221
221
222
222
file -> buffer .data [0 ] = '\0' ;
@@ -261,20 +261,20 @@ void zone_close_file(
261
261
262
262
assert (!is_string || !file -> handle );
263
263
264
- if (file -> buffer .data && !is_string )
265
- free (file -> buffer .data );
264
+ // if (file->buffer.data && !is_string)
265
+ // free(file->buffer.data);
266
266
file -> buffer .data = NULL ;
267
- if (file -> name && file -> name != not_a_file )
268
- free ((char * )file -> name );
267
+ // if (file->name && file->name != not_a_file)
268
+ // free((char *)file->name);
269
269
file -> name = NULL ;
270
- if (file -> path && file -> path != not_a_file )
271
- free ((char * )file -> path );
270
+ // if (file->path && file->path != not_a_file)
271
+ // free((char *)file->path);
272
272
file -> path = NULL ;
273
273
if (file -> handle )
274
274
(void )fclose (file -> handle );
275
275
file -> handle = NULL ;
276
- if (file != & parser -> first )
277
- free (file );
276
+ // if (file != &parser->first)
277
+ // free(file);
278
278
}
279
279
280
280
nonnull_all
You can’t perform that action at this time.
0 commit comments