diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-01 12:12:55 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-01 12:22:02 +0100 |
commit | 47d48b9cdcaa21fb865112f501bb6472c61c084f (patch) | |
tree | 51f044a83160c0a752d6da13c663e2d73e9989ef /libtrivfs | |
parent | 12e6bbc7c90530b417e335917b872cbd2057cd78 (diff) | |
download | hurd-47d48b9cdcaa21fb865112f501bb6472c61c084f.tar.gz hurd-47d48b9cdcaa21fb865112f501bb6472c61c084f.tar.bz2 hurd-47d48b9cdcaa21fb865112f501bb6472c61c084f.zip |
libtrivfs: Fix memleak on error
Diffstat (limited to 'libtrivfs')
-rw-r--r-- | libtrivfs/dyn-classes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libtrivfs/dyn-classes.c b/libtrivfs/dyn-classes.c index a6bb7de1..edc13a0f 100644 --- a/libtrivfs/dyn-classes.c +++ b/libtrivfs/dyn-classes.c @@ -104,6 +104,8 @@ add_el (void *el, void (*free_el)(), { if (free_el) (*free_el) (el); + free (new_vec); + free (new_aux_vec); /* One of the vectors might be the wrong size, but who cares. */ return ENOMEM; } |