seoz pushed a commit to branch master.

commit 7ef4dc6e1e11dfe7ddefc463b413b9cd31ae5ff7
Author: Daniel Juyung Seo <[email protected]>
Date:   Sun Aug 11 15:51:29 2013 +0900

    test_access.c: free memory in a proper place.
    
    This fixes coverity CID 1046528 Resource leak (RESOURCE_LEAK).
---
 src/bin/test_access.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/test_access.c b/src/bin/test_access.c
index 979c8d4..0ab8236 100644
--- a/src/bin/test_access.c
+++ b/src/bin/test_access.c
@@ -318,9 +318,10 @@ _key_down_cb(void *data, int type __UNUSED__, void *ei)
           {
              a->highlight_cycle = EINA_TRUE;
              elm_access_action(data, ELM_ACCESS_ACTION_HIGHLIGHT_NEXT, a);
-             free(a);
           }
      }
+   free(a);
+
    return ECORE_CALLBACK_PASS_ON;
 }
 

-- 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

Reply via email to