nspawn: avoid memleak
authorTom Gundersen <teg@jklm.no>
Mon, 25 May 2015 20:55:52 +0000 (22:55 +0200)
committerTom Gundersen <teg@jklm.no>
Mon, 25 May 2015 20:58:26 +0000 (22:58 +0200)
commit2371271c2acaeab31e232b6749f12aeac7c18348
treec458cc3817c934fe0de796f8dec55f97dbbc76c3
parent4b53a9d21b5d280e1c2e42f5bd29193754251c1e
nspawn: avoid memleak

Simplify the code a bit, at the cost of potentially duplicating some
memory unneccessarily.

Fixes CID 1299641.
src/nspawn/nspawn.c