loaders: LoadImage: Fixes.
commit59b7db7636f17da18520d71c091dd9c23694ea91
authorCyril Hrubis <metan@ucw.cz>
Tue, 9 Apr 2013 11:59:05 +0000 (9 13:59 +0200)
committerCyril Hrubis <metan@ucw.cz>
Tue, 9 Apr 2013 11:59:05 +0000 (9 13:59 +0200)
tree3ac6af686fac2590ce4d1645be2bf1d241885bbe
parentc5adff16bfbf788991b9417d59a72d3d91645348
loaders: LoadImage: Fixes.

* Set errno to ENOSYS when signature loader was not found

* close file if image signature wasn't read
  (fixes memleak)

Signed-off-by: Cyril Hrubis <metan@ucw.cz>
libs/loaders/GP_Loader.c