summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2006-06-02 19:33:29 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2006-06-02 19:33:29 +0000
commit000abcd371d0c4b1d0a5380023d74bf5bfc47685 (patch)
tree64efa3df838c934732858dfed37c6320563f4536 /src
parent5c70c99833d4040aaf595d0005b861e0a930ee66 (diff)
downloadxorg-lib-libXpm-000abcd371d0c4b1d0a5380023d74bf5bfc47685.tar.gz
Coverity #1415: Returned without freeing storage "hints_cmt" (in error case
when xpmHashTableInit failed)
Diffstat (limited to 'src')
-rw-r--r--src/parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parse.c b/src/parse.c
index 9644181..c5ec1a1 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -1,4 +1,4 @@
-/* $XdotOrg: xc/extras/Xpm/lib/parse.c,v 1.2.4.1 2004/09/15 15:47:39 daniel Exp $ */
+/* $XdotOrg: lib/Xpm/src/parse.c,v 1.6 2005/07/16 21:11:25 alanc Exp $ */
/*
* Copyright (C) 1989-95 GROUPE BULL
*
@@ -702,12 +702,12 @@ xpmParseData(data, image, info)
xpmGetCmt(data, &hints_cmt);
/*
- * init the hastable
+ * init the hashtable
*/
if (USE_HASHTABLE) {
ErrorStatus = xpmHashTableInit(&hashtable);
if (ErrorStatus != XpmSuccess)
- return (ErrorStatus);
+ RETURN(ErrorStatus);
}
/*