summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-07-18 17:40:07 -0500
committerNoriko Hosoi <nhosoi@redhat.com>2010-08-20 13:05:21 -0700
commit26ef098df77f66e027719924ac84ebc00bf069aa (patch)
treeba0e272e40c5f858dee3a4bd3316814a6cc2a523 /lib
parentd0a1f482adf42ba6c03ec34dfb4d92d0256c8303 (diff)
downloadds-26ef098df77f66e027719924ac84ebc00bf069aa.tar.gz
ds-26ef098df77f66e027719924ac84ebc00bf069aa.tar.xz
ds-26ef098df77f66e027719924ac84ebc00bf069aa.zip
Bug 616500 - fix coverify Defect Type: Resource leaks issues CID 12094 - 12136
https://bugzilla.redhat.com/show_bug.cgi?id=616500 Resolves: bug 616500 Bug description: fix coverify Defect Type: Resource leaks issues CID 12133, 12134 description: Fixed resource leaks in helpJavaScriptForTopic() and helpJavaScript().
Diffstat (limited to 'lib')
-rw-r--r--lib/libadmin/template.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libadmin/template.c b/lib/libadmin/template.c
index 247e801a..3a565bb1 100644
--- a/lib/libadmin/template.c
+++ b/lib/libadmin/template.c
@@ -80,6 +80,7 @@ NSAPI_PUBLIC char *helpJavaScriptForTopic( char *topic )
getenv("SERVER_URL"), server, topic,
type );
+ FREE(type);
return(STRDUP(line));
}
@@ -93,5 +94,6 @@ NSAPI_PUBLIC char *helpJavaScript()
sn=strrchr(tmp, '/');
if( sn )
*sn++='\0';
+ FREE(tmp);
return helpJavaScriptForTopic( sn );
}