projects
/
framework
/
appfw
/
aul-1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tizen 2.3.1 release
[framework/appfw/aul-1.git]
/
src
/
key.c
diff --git
a/src/key.c
b/src/key.c
index
da44d65
..
809757b
100755
(executable)
--- a/
src/key.c
+++ b/
src/key.c
@@
-75,6
+75,13
@@
SLPAPI int aul_key_init(int (*aul_handler) (bundle *, void *), void *data)
src = g_source_new(&funcs, sizeof(GSource));
gpollfd = (GPollFD *) g_malloc(sizeof(GPollFD));
+ if (gpollfd == NULL) {
+ _E("out of memory");
+ g_source_unref(src);
+ close(fd);
+ return AUL_R_ERROR;
+ }
+
gpollfd->events = POLLIN;
gpollfd->fd = fd;