You can see the memory leaks with address sanitizer if shadow is
compiled with `--enable-vendordir=/usr/etc`.
How to reproduce:
1. Prepare a custom shell file as root
```
mkdir -p /etc/shells.d
echo /bin/myshell > /etc/shells.d/custom
```
2. Run chsh as regular user
```
chsh
```
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
* syslog. The tools will just use their default values.
*/
(void)putdef_str (keys[i], value);
+
+ free(value);
}
econf_free (keys);
break;
}
}
+ econf_free (keys);
econf_free (key_file);
return found;