Fix resource leak in case of error, fix strncpy usage
authorPrzemyslaw Ciezkowski <p.ciezkowski@samsung.com>
Tue, 6 Nov 2012 10:58:46 +0000 (11:58 +0100)
committerGerrit Code Review <gerrit2@kim11>
Tue, 13 Nov 2012 05:04:52 +0000 (14:04 +0900)
commitd145cdc8bb1b92bfd6802d1e7a333327ba13ab45
treea0e67f14814b304150581c1f4180364e57780ad8
parent9c1c8d9645fa0dd9033eb4afc7025c66bcf10ef9
Fix resource leak in case of error, fix strncpy usage

[Issue#] N/A
[Feature] Malloc will not return NULL on linux. Function strncpy is
called not properly.
[Cause] N/A
[Solution] Removed check if malloc was sucessful. Fix strncpy calls.
[Verification] Install any widget.

Change-Id: I3a6967c3a231b71f26b2d421a11d353e3620f400
src/pkg-manager/backendlib.cpp