commit | 5812ec2fbbb9e9244e31525737ea967c7a795252 | [log] [tgz] |
---|---|---|
author | Eric Paris <[email protected]> | Tue Feb 05 13:54:14 2013 -0500 |
committer | Eric Paris <[email protected]> | Tue Feb 05 20:19:04 2013 -0500 |
tree | a503d183ee84906a4179dd83ef407f6b8376ab47 | |
parent | 78d618422bbf8774edaeaa3df549c2d4d1b06dd1 [diff] |
libsemanage: genhomedircon: do not leak shells list If get_home_dirs() was called without usepasswd we would generate the entire shell list, but would never use that list. We would then not free that list when we returned the homedir_list. Instead, do not create the list of shells until after we know it will be used. Signed-off-by: Eric Paris <[email protected]>