ref: 46ce4198481f1e07568961f745850da6d9b5b468
parent: 60e95c7c1546a5580fdf2799f4c0e4d7e05b0991
author: qwx <>
date: Sat Dec 15 14:31:56 EST 2018
in: check for nil before chanfree
--- a/in.c
+++ b/in.c
@@ -415,8 +415,10 @@
iop = -1;
close(pfd[0]);
close(pfd[1]);
- chanfree(kchan);
- chanfree(mchan);
+ if(kchan != nil)
+ chanfree(kchan);
+ if(mchan != nil)
+ chanfree(mchan);
}
void