stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=03ed41517cb39e33807822fd48255e4393970e47

commit 03ed41517cb39e33807822fd48255e4393970e47
Author: Stefan Schmidt <[email protected]>
Date:   Tue Feb 25 12:34:18 2020 +0100

    exactness: injector: free local buffers
    
    Make sure we free local resources before we break.
    
    CID: 1419845
    
    Reviewed-by: Mike Blumenkrantz <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D11414
---
 src/bin/exactness/injector.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/bin/exactness/injector.c b/src/bin/exactness/injector.c
index 8b73ff5270..68bc4b0b60 100644
--- a/src/bin/exactness/injector.c
+++ b/src/bin/exactness/injector.c
@@ -175,6 +175,7 @@ _feed_event(Exactness_Action_Type type, unsigned int 
n_evas, void *data)
               STORE_INT(tmp, t->direction);
               STORE_INT(tmp, t->z);
               eina_debug_session_send(_session, _cid, _mouse_wheel_op, buf, 
len);
+              free(buf);
               break;
            }
       case EXACTNESS_ACTION_MULTI_DOWN:
@@ -202,6 +203,7 @@ _feed_event(Exactness_Action_Type type, unsigned int 
n_evas, void *data)
               eina_debug_session_send(_session, _cid,
                     type == EXACTNESS_ACTION_MULTI_DOWN ? _multi_down_op : 
_multi_up_op,
                     buf, len);
+              free(buf);
               break;
            }
       case EXACTNESS_ACTION_MULTI_MOVE:
@@ -222,6 +224,7 @@ _feed_event(Exactness_Action_Type type, unsigned int 
n_evas, void *data)
               STORE_DOUBLE(tmp, t->fx);
               STORE_DOUBLE(tmp, t->fy);
               eina_debug_session_send(_session, _cid, _multi_move_op, buf, 
len);
+              free(buf);
               break;
            }
       case EXACTNESS_ACTION_KEY_DOWN:
@@ -246,6 +249,7 @@ _feed_event(Exactness_Action_Type type, unsigned int 
n_evas, void *data)
               eina_debug_session_send(_session, _cid,
                     type == EXACTNESS_ACTION_KEY_DOWN ? _key_down_op : 
_key_up_op,
                     buf, len);
+              free(buf);
               break;
            }
       case EXACTNESS_ACTION_TAKE_SHOT:
@@ -265,6 +269,7 @@ _feed_event(Exactness_Action_Type type, unsigned int 
n_evas, void *data)
               STORE_STRING(tmp, t->wdg_name);
               STORE_STRING(tmp, t->event_name);
               eina_debug_session_send(_session, _cid, _efl_event_op, buf, len);
+              free(buf);
               break;
            }
       case EXACTNESS_ACTION_CLICK_ON:
@@ -276,6 +281,7 @@ _feed_event(Exactness_Action_Type type, unsigned int 
n_evas, void *data)
               _printf(2, "%s %s\n", __func__, "Click On");
               STORE_STRING(tmp, t->wdg_name);
               eina_debug_session_send(_session, _cid, _click_on_op, buf, len);
+              free(buf);
               break;
            }
       case EXACTNESS_ACTION_STABILIZE:

-- 


Reply via email to