]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/manager.c
core: fix resource leak in manager_environment_add
authorAndreas Henriksson <andreas@fatal.se>
Tue, 16 Sep 2014 19:11:02 +0000 (21:11 +0200)
committerDaniel Mack <daniel@zonque.org>
Tue, 16 Sep 2014 19:47:24 +0000 (21:47 +0200)
commitaa9f8a30fd7dc7aa3aa2575b75b3f9a0ab3f02db
tree9b5964fd2e932a0cc83a1dc9c82758d6b89f7b9f
parent06b7f7bd7fa8cde840dd693c7a68dbd954c119ec
core: fix resource leak in manager_environment_add

Second error path must free the (potentially) allocated memory in the
first code chunk before returning.

Found by coverity. Fixes: CID#1237750
src/core/manager.c