Fix: Malloc only when making process entry in tree 65/179665/1 accepted/tizen/4.0/unified/20180605.090353 submit/tizen_4.0/20180601.002450
authorNishant Chaprana <n.chaprana@samsung.com>
Mon, 21 May 2018 05:06:55 +0000 (10:36 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Mon, 21 May 2018 05:06:55 +0000 (10:36 +0530)
commitb2713594cd94727c1344572214d6c3a9b27454be
treedbd66daccb9d23587c6fc9760e82db70441705da
parent4980450e6236e1a1c8293f8d59d8f396e34e4bba
Fix: Malloc only when making process entry in tree

Description:
For some processes both FORK and EXEC events are emitted, however
we were allocating mamory in both methods, but not unallocating the
memory in failure case when entry was already present.

So we should malloc only when we are creating an entry in process tree.

Change-Id: Iaf69a4f17cb677d1d34558f4aab33e0e20ae4868
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/stc-manager.spec
plugin/net-popup/data/stc_noti_datausage.png [changed mode: 0755->0644]
plugin/procfs/stc-plugin-procfs.c
resources/systemd/stc-manager.service [changed mode: 0755->0644]