Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd55bfe
)
callfcgi: Fixed free() typo.
0.4
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 30 Oct 2010 10:00:10 +0000
(12:00 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 30 Oct 2010 10:00:10 +0000
(12:00 +0200)
src/callfcgi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/callfcgi.c
b/src/callfcgi.c
index
d36e98c
..
4a22ea7
100644
(file)
--- a/
src/callfcgi.c
+++ b/
src/callfcgi.c
@@
-611,12
+611,12
@@
static int recvrec(FILE *in, int *type, int *rid, char **data, size_t *dlen)
return(-1);
*data = smalloc(max(*dlen, 1));
if(fread(*data, 1, *dlen, in) != *dlen) {
- free(data);
+ free(
*
data);
return(-1);
}
for(; pl > 0; pl--) {
if(fgetc(in) == EOF) {
- free(data);
+ free(
*
data);
return(-1);
}
}