[multicat-devel] [Git][videolan/multicat][master] multilive: fix memory leak on peer creation
Christophe Massiot (@cmassiot)
gitlab at videolan.org
Sat Dec 7 17:07:12 UTC 2024
Christophe Massiot pushed to branch master at VideoLAN / multicat
Commits:
9d540cd1 by Arnaud de Turckheim at 2024-12-07T18:04:52+01:00
multilive: fix memory leak on peer creation
- - - - -
1 changed file:
- multilive.c
Changes:
=====================================
multilive.c
=====================================
@@ -441,8 +441,7 @@ static struct peer *peer_create(const char *name, const char *conf, int ttl)
struct peer *peer = malloc(sizeof (*peer));
char *name_dup = name ? strdup(name) : NULL;
char *conf_dup = strdup(conf);
- char *args = strdup(conf);
- if ( !peer || !conf_dup || !args || (!name_dup && name) )
+ if ( !peer || !conf_dup || (!name_dup && name) )
{
msg_Err( NULL, "allocation failed");
free( peer );
View it on GitLab: https://code.videolan.org/videolan/multicat/-/commit/9d540cd1f836fc7a3ad26bd41e37d9b93f0b93dc
--
View it on GitLab: https://code.videolan.org/videolan/multicat/-/commit/9d540cd1f836fc7a3ad26bd41e37d9b93f0b93dc
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the multicat-devel
mailing list