chiark / gitweb /
systemd-bootchart: Prevent leaking file descriptors in open-fdopen combination
authorAlexander Sverdlin <alexander.sverdlin@gmail.com>
Sun, 29 Mar 2015 18:44:04 +0000 (20:44 +0200)
committerDaniel Mack <daniel@zonque.org>
Mon, 30 Mar 2015 07:37:11 +0000 (09:37 +0200)
commit58ec01b35c046f5f167763343514c20170bfd2eb
treef5e06ce17cad77795f29ce7728c106871623fead
parent9964a9eb7b18d6ad172a7921cf88efabde05d121
systemd-bootchart: Prevent leaking file descriptors in open-fdopen combination

Correctly handle the potential failure of fdopen() (because of OOM, for instance)
after potentially successful open(). Prevent leaking open fd in such case.
src/bootchart/store.c
src/bootchart/svg.c