diff options
| author | Ivy Lopez <skunkolee@gmail.com> | 2026-08-31 19:41:38 -0600 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-10-06 19:03:00 -0700 |
| commit | aa4b0525ffbe163ae1fc4c73b9ed68165f74c077 (patch) | |
| tree | aebedb6df18dc682ed2ad2c0d81a483da1c72180 /include/linux/timerqueue.h | |
| parent | 1d4408578567d1b3c7086be37986164982791f19 (diff) | |
lib: decompress_unxz: make it obvious that there is no memory leak
Calling __decompress() or unxz() with fill == NULL && flush == NULL && in
== NULL is invalid, thus there were no memory leaks even though it might
have looked like that. Move the conditional free() calls so that it's
obvious that there are no leaks.
Link: https://lore.kernel.org/20260901014138.22699-1-skunkolee@gmail.com
Link: https://lore.kernel.org/lkml/20241006072542.66442-2-t.v.s10123@gmail.com/T/
Link: https://lore.kernel.org/lkml/20260825191333.34276-1-skunkolee@gmail.com/T/
Signed-off-by: Ivy Lopez <skunkolee@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=207113
Reviewed-by: Lasse Collin <lasse.collin@tukaani.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
