A possible consequence of this bug was a memory leak if SIGINT arrived
during a 'set' command (listing variables).
Obtained-from: FreeBSD 231001
* SUCH DAMAGE.
*
* @(#)var.c 8.3 (Berkeley) 5/4/95
- * $FreeBSD: src/bin/sh/var.c,v 1.64 2012/02/04 23:12:14 jilles Exp $
+ * $FreeBSD: src/bin/sh/var.c,v 1.65 2012/02/04 23:29:07 jilles Exp $
*/
#include <unistd.h>
}
}
- INTON;
+ INTOFF;
vars = ckmalloc(n * sizeof(*vars));
i = 0;
for (vpp = vartab; vpp < vartab + VTABSIZE; vpp++) {
out1c('\n');
}
ckfree(vars);
- INTOFF;
+ INTON;
return 0;
}