Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a0ef58b
)
psendfile: Don't free contype if it's NULL.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 5 Jun 2012 00:10:52 +0000
(
02:10
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 5 Jun 2012 00:10:52 +0000
(
02:10
+0200)
src/psendfile.c
patch
|
blob
|
blame
|
history
diff --git
a/src/psendfile.c
b/src/psendfile.c
index
52ec9dc
..
08cd1d2
100644
(file)
--- a/
src/psendfile.c
+++ b/
src/psendfile.c
@@
-268,7
+268,8
@@
static void serve(struct muth *muth, va_list args)
out:
if(sfile != NULL)
fclose(sfile);
out:
if(sfile != NULL)
fclose(sfile);
- free(contype);
+ if(contype != NULL)
+ free(contype);
fclose(out);
freehthead(req);
}
fclose(out);
freehthead(req);
}