]> www.dolda2000.com Git - ashd.git/commitdiff
psendfile: Don't free contype if it's NULL.
authorFredrik Tolf <fredrik@dolda2000.com>
Tue, 5 Jun 2012 00:10:52 +0000 (02:10 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Tue, 5 Jun 2012 00:10:52 +0000 (02:10 +0200)
src/psendfile.c

index 52ec9dc2204b6ef5ae4f86e7b18719eefc537697..08cd1d212ea239fa72fda5a777f81b8a21fc5d53 100644 (file)
@@ -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);
 }