Commit 8077a3a4 authored by Rafaël Carré's avatar Rafaël Carré

Fix memory leak spotted by Mr_Mirsal

parent 80566b68
......@@ -351,7 +351,7 @@ DBUS_METHOD( Identity )
{
REPLY_INIT;
OUT_ARGUMENTS;
char *psz_identity = malloc( strlen( PACKAGE ) + strlen( VERSION ) + 1 );
char *psz_identity = malloc( strlen( PACKAGE ) + strlen( VERSION ) + 2 );
sprintf( psz_identity, "%s %s", PACKAGE, VERSION );
ADD_STRING( &psz_identity );
free( psz_identity );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment