projects
/
platform
/
core
/
system
/
tizen-platform-wrapper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tizen-platform-wrapper: fix resource leak
[platform/core/system/tizen-platform-wrapper.git]
/
src
/
isadmin.c
diff --git
a/src/isadmin.c
b/src/isadmin.c
index
130f43e
..
f62a449
100644
(file)
--- a/
src/isadmin.c
+++ b/
src/isadmin.c
@@
-74,7
+74,7
@@
int _has_system_group_static_(uid_t uid) {
/* Get all the gid of the given uid */
- getpwuid(myuid, &pwd, buf, sizeof(buf), &userinfo);
+ getpwuid
_r
(myuid, &pwd, buf, sizeof(buf), &userinfo);
/* Need to call this function now to get the number of group to make the
malloc correctly sized */