projects
/
platform
/
core
/
system
/
pass.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cfa1c6
)
util: resource: Unset attrs when resource is deleted
35/273035/2
author
Dongwoo Lee
<dwoo08.lee@samsung.com>
Mon, 28 Mar 2022 11:47:14 +0000
(20:47 +0900)
committer
Dongwoo Lee
<dwoo08.lee@samsung.com>
Thu, 31 Mar 2022 03:02:27 +0000
(12:02 +0900)
To free memory allocated to data_value arrays of resource, unset attr
function is invoked while deleting resource.
Change-Id: Id5c87a7a5afb64c4bd94da1894ad8fca7ec1b272
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/util/resource.c
patch
|
blob
|
history
diff --git
a/src/util/resource.c
b/src/util/resource.c
index
6605154
..
5149726
100644
(file)
--- a/
src/util/resource.c
+++ b/
src/util/resource.c
@@
-153,6
+153,8
@@
void delete_resource(struct resource *resource)
if (resource->driver && resource->driver->ops.exit)
resource->driver->ops.exit(resource);
+ unset_resource_attr_interest(resource, RESOURCE_ATTR_MASK);
+
do_delete_resource(resource);
}