diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2025-07-12 12:47:01 -0400 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2025-07-12 12:47:01 -0400 |
| commit | 814e86e74f2603a34b6576ab335ad9ac70ade763 (patch) | |
| tree | 0004c93e1d5248ab009693239c24edf39e94a41d /src | |
| parent | Add test for clear to linebuffer tests (diff) | |
| download | cli-814e86e74f2603a34b6576ab335ad9ac70ade763.zip | |
Add linebuffer destroy to error case
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -59,6 +59,7 @@ int justify(size_t linebuffer_capacity, FILE *in, FILE *out) { } if (read_word_result == READ_WORD_ERR_READ) { fprintf(stderr, "Error reading word\n"); + linebuffer_destroy(lb); return EXIT_FAILURE; } if (linebuffer_space_remaining(lb) < linebuffer_capacity) { |