asdfuser pushed a commit to branch master.

commit 7f87d9891d15dc5d2e19c4dbcaabd2133f95f23d
Author: Daniel Willmann <[email protected]>
Date:   Wed Apr 24 23:27:48 2013 +0100

    eo: Fix incorrect pointer allocation
    
    We want to allocate sizeof(Eo_Dbg_Info) - not sizeof(Eo_Dbg_Info *)
    bytes.
---
 src/lib/eo/eo_base_class.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index 2b5b69c..979e8a0 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -618,7 +618,7 @@ _eo_dbg_info_copy(const Eina_Value_Type *type EINA_UNUSED, 
const void *_src, voi
 {
    const Eo_Dbg_Info **src = (const Eo_Dbg_Info **) _src;
    Eo_Dbg_Info **dst = _dst;
-   *dst = calloc(1, sizeof(*dst));
+   *dst = calloc(1, sizeof(Eo_Dbg_Info));
    (*dst)->name = eina_stringshare_ref((*src)->name);
    eina_value_copy(&((*src)->value), &((*dst)->value));
    return EINA_TRUE;

-- 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr

Reply via email to