]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
ras-mce-handler: change the test order to avoid leaked memory
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 28 May 2013 11:13:17 +0000 (08:13 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 28 May 2013 11:13:17 +0000 (08:13 -0300)
commitc17f18f1b3099324a26aef67caa0e608126fa8bc
tree04ceff7afdea6401164ad5b9e209d31ed276f58e
parentca076fac47a741150df15161e7d8b7d82120c06f
ras-mce-handler: change the test order to avoid leaked memory

As getdelim allocates memory, the better is to swap the
tests, or otherwise the code will allocate some memory that
will never be de-allocated.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
ras-mce-handler.c