chiark / gitweb /
journal: do not dereference already freed patterns
authorPhilippe De Swert <philippedeswert@gmail.com>
Wed, 10 Sep 2014 09:20:39 +0000 (12:20 +0300)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 11 Sep 2014 15:13:59 +0000 (17:13 +0200)
commit48d4c7468fb5003ae45ac834de1ca85624cdd56e
tree80c019d1815a8b588d6b62fa276d45d6fa3c37fa
parentfd989a0bc999d79719408ac28b126d9c9016bcb5
journal: do not dereference already freed patterns

In case set_consume goes wrong, the pattern name has already been
freed. So we do not try to print it in the logs, assuming the pattern
addition print will be printed just before the failure anyway. Found
with coverity. Fixes: CID#1237798
src/journal/coredumpctl.c