stack: fix null pointer dereferences 38/49338/1
authorDuna Oh <duna.oh@samsung.com>
Tue, 13 Oct 2015 00:40:57 +0000 (09:40 +0900)
committerDuna Oh <duna.oh@samsung.com>
Tue, 13 Oct 2015 00:40:57 +0000 (09:40 +0900)
Change-Id: I85a6bcb50ac118d4132f3877f850cde73dc7770d
Signed-off-by: Duna Oh <duna.oh@samsung.com>
src/e_mod_stack.c

index 0f90c1c..2465443 100644 (file)
@@ -33,6 +33,8 @@ _pol_stack_data_add(E_Client *ec)
      return ps;
 
    ps = E_NEW(Pol_Stack, 1);
+   if (!ps) return NULL;
+
    ps->ec = ec;
    eina_hash_add(hash_pol_stack, &ec, ps);