X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=src%2Fpsendfile.c;h=08cd1d212ea239fa72fda5a777f81b8a21fc5d53;hp=52ec9dc2204b6ef5ae4f86e7b18719eefc537697;hb=8f18d703d2b6edc2669aa36bf32497ebb1f8442f;hpb=a0ef58b1f5b0759e7bcd19a4d6e1eceae0b51edb diff --git a/src/psendfile.c b/src/psendfile.c index 52ec9dc..08cd1d2 100644 --- 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); - free(contype); + if(contype != NULL) + free(contype); fclose(out); freehthead(req); }