Simplify cleanup code by using GCC extension for variable scoping.
authorRafal Krypa <r.krypa@samsung.com>
Mon, 22 Apr 2013 15:03:19 +0000 (17:03 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 25 Apr 2013 07:34:46 +0000 (09:34 +0200)
commitdf37280120090ab2ff2c4bafe82d402efd81ed4a
tree3e514283c5e39a335e45c30869a5ab072f220a24
parent483ff207eb99bd4ed6f0c6415eae1f7734d5e2e3
Simplify cleanup code by using GCC extension for variable scoping.

[Issue#]       N/A
[Feature]      Simplify cleanup code in functions.
[Cause]        N/A
[Solution]     Use GCC's cleanup attribute for automatic resource reclaim.
[Verification] Build, install, reboot target. Run tests from security-tests.

Change-Id: Id874ff958f2065b61c04875c362ec3331d603865

Conflicts:

src/privilege-control.c
include/common.h
src/access-db.c
src/common.c
src/privilege-control.c