From 16afc89353c2f61e3dd671bd842540cdf3627193 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Wed, 26 Mar 2008 20:58:46 +0200 Subject: [PATCH] Fix memory leak --- src/modules/modules.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/modules/modules.c b/src/modules/modules.c index 29594e11ce..d11c3ff545 100644 --- a/src/modules/modules.c +++ b/src/modules/modules.c @@ -691,10 +691,7 @@ found_shortcut: /* This assumes that p_this is the object which will be using the * module. That's not always the case ... but it is in most cases. */ - if( psz_alias ) - p_this->psz_object_name = strdup( psz_alias ); - else - p_this->psz_object_name = strdup( p_module->psz_object_name ); + p_this->psz_object_name = p_module->psz_object_name; } free( psz_shortcuts ); -- 2.39.2