Two (potential ) memleak fixes

Alan Coopersmith Alan.Coopersmith at Sun.COM
Wed Oct 14 11:07:42 PDT 2009


Michael Jansen wrote:
> Hi 
> 
> while using valgrind to check ksmserver (kde) i stumbled about the following 
> possible memleaks.
> 
> Please cc me as i'm not subscribed to this list.
> 
> Mike
> 
> 1. libSM
> -----------------------
> 
> diff --git a/src/sm_process.c b/src/sm_process.c
> index 1c81020..3bf48c4 100644
> --- a/src/sm_process.c
> +++ b/src/sm_process.c
> @@ -852,6 +852,7 @@ _SmsProcessMessage(IceConn iceConn, IcePointer clientData, 
> int opcode,
>             smsConn->callbacks.delete_properties.manager_data,
>             count, propNames);
> 
> +       free(propNames);
>         break;
>      }

Pushed this one to libSM.  Thanks for the report/patch.

-- 
	-Alan Coopersmith-           alan.coopersmith at sun.com
	 Sun Microsystems, Inc. - X Window System Engineering



More information about the xorg-devel mailing list