Fix memory leak and add EINTR error handling. 60/22760/5
authorMarcin Lis <m.lis@samsung.com>
Wed, 11 Jun 2014 08:39:54 +0000 (10:39 +0200)
committerMarcin Lis <m.lis@samsung.com>
Thu, 12 Jun 2014 11:11:51 +0000 (13:11 +0200)
commit2c9421804005c397d53911199b1817204261ed33
tree5b54042571eb7e4428a014b78806246dc5a30bb3
parent9d7d2f242d036ed8f07e4afa108709524b1af409
Fix memory leak and add EINTR error handling.

One memory leak was missed in the Installer service.
Introduce retries on EINTR error while trying to open a file.
Also add close() error handling.

Change-Id: I946ba0b7effbe8a2fd429a86d5d7b387be076546
Signed-off-by: Marcin Lis <m.lis@samsung.com>
src/server/service/installer.cpp
src/server/service/smack-rules.cpp