From cc2b61b1dda1b9d5bfaf8f30e9428f97b20dc354 Mon Sep 17 00:00:00 2001 From: Garance A Drosehn Date: Fri, 12 Jul 2002 01:53:36 +0000 Subject: [PATCH] Call routine to free everything obtained when filling in 'struct printer'. MFC after: 3 days --- usr.sbin/lpr/lpc/cmds.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/lpr/lpc/cmds.c b/usr.sbin/lpr/lpc/cmds.c index db984225c226..79fbe84fa5ba 100644 --- a/usr.sbin/lpr/lpc/cmds.c +++ b/usr.sbin/lpr/lpc/cmds.c @@ -242,6 +242,7 @@ generic(void (*specificrtn)(struct printer *_pp), int cmdopts, if (generic_wrapup) { (*generic_wrapup)(cmdstatus); } + free_printer(pp); if (generic_msg) free(generic_msg); }