chiark / gitweb /
install: fix invalid free() in unit_file_mask()
authorAndreas Henriksson <andreas@fatal.se>
Fri, 13 Jun 2014 16:48:18 +0000 (18:48 +0200)
committerTom Gundersen <teg@jklm.no>
Fri, 13 Jun 2014 17:01:07 +0000 (19:01 +0200)
commit223217749e57996336d5730b0a28716cca56d45d
tree781b4582499a5cf67c41a4a07f5e1bc1e30d7b3d
parentf8a0bb5285024b6ce372c3157e761e6543ebdcd2
install: fix invalid free() in unit_file_mask()

int unit_file_mask(...) in ./src/shared/install.c calls
get_config_path(...) which can in 4 error cases return without setting
"ret", and thus "prefix" can be uninitialized when unit_file_mask(...)
finishes (which it does directly after the error is returned from
get_config_path(...)).
src/shared/install.c