projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c5a108
)
progs/util: Fix memory leak if fopen fails in RawImageOpen.
author
Vinson Lee
<vlee@vmware.com>
Tue, 17 Nov 2009 21:49:31 +0000
(13:49 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Tue, 17 Nov 2009 21:49:31 +0000
(13:49 -0800)
progs/util/readtex.c
patch
|
blob
|
history
diff --git
a/progs/util/readtex.c
b/progs/util/readtex.c
index
c57b66b
..
3922998
100644
(file)
--- a/
progs/util/readtex.c
+++ b/
progs/util/readtex.c
@@
-109,6
+109,7
@@
static rawImageRec *RawImageOpen(const char *fileName)
raw->file = fopen(baseName + 1, "rb");
if(raw->file == NULL) {
perror(fileName);
+ free(raw);
return NULL;
}
}