refactoring: use common function template for getting label by libsmack 29/61929/2
authorRafal Krypa <r.krypa@samsung.com>
Fri, 11 Mar 2016 08:10:21 +0000 (09:10 +0100)
committerRafal Krypa <r.krypa@samsung.com>
Wed, 20 Apr 2016 15:35:43 +0000 (17:35 +0200)
commitd624c4d3f29e37490ef905f135520310730b4595
tree9c40367d9497f71357a0287db86cd6ab1c0e4375
parentae9f5b5482206cfeb468d04a4971a8282297a5a7
refactoring: use common function template for getting label by libsmack

Merging repeated code pattern where a libsmack function is used to fetch
Smack label, the result must be wrapped into std::string and memory
allocated by libsmack safely freed.

Change-Id: I67136fc5f78fd7974d27feafb0ee2d3164df9461
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
src/common/smack-labels.cpp