projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dbdc79c
)
More (and hopefully for now) the final cleanup for mhl.
author
Ken Hornstein
<kenh@pobox.com>
Sat, 17 Nov 2012 04:41:10 +0000
(23:41 -0500)
committer
Ken Hornstein
<kenh@pobox.com>
Sat, 17 Nov 2012 04:41:10 +0000
(23:41 -0500)
uip/mhlsbr.c
patch
|
blob
|
history
diff --git
a/uip/mhlsbr.c
b/uip/mhlsbr.c
index
421098c
..
53b61f9
100644
(file)
--- a/
uip/mhlsbr.c
+++ b/
uip/mhlsbr.c
@@
-895,6
+895,7
@@
process (char *folder, char *fname, int ofilen, int ofilec)
FILE *fp = NULL;
struct mcomp *c1;
struct stat st;
FILE *fp = NULL;
struct mcomp *c1;
struct stat st;
+ struct arglist *ap;
switch (setjmp (env)) {
case OK:
switch (setjmp (env)) {
case OK:
@@
-919,6
+920,14
@@
process (char *folder, char *fname, int ofilen, int ofilec)
SIGNAL (SIGINT, intrser);
mhlfile (fp, cp, ofilen, ofilec); /* FALL THROUGH! */
SIGNAL (SIGINT, intrser);
mhlfile (fp, cp, ofilen, ofilec); /* FALL THROUGH! */
+ for (ap = arglist_head; ap; ap = ap->a_next) {
+ fmt_free(ap->a_fmt, 0);
+ ap->a_fmt = NULL;
+ }
+
+ if (arglist_head)
+ fmt_free(NULL, 1);
+
default:
if (ontty != PITTY)
SIGNAL (SIGINT, SIG_IGN);
default:
if (ontty != PITTY)
SIGNAL (SIGINT, SIG_IGN);
@@
-1566,6
+1575,7
@@
mhlsbr (int argc, char **argv, FILE *(*action)())
SIGNAL_HANDLER istat = NULL, pstat = NULL, qstat = NULL;
char *cp = NULL;
struct mcomp *c1;
SIGNAL_HANDLER istat = NULL, pstat = NULL, qstat = NULL;
char *cp = NULL;
struct mcomp *c1;
+ struct arglist *a, *a2;
switch (setjmp (mhlenv)) {
case OK:
switch (setjmp (mhlenv)) {
case OK:
@@
-1602,6
+1612,15
@@
mhlsbr (int argc, char **argv, FILE *(*action)())
free_queue (&msghd, &msgtl);
for (c1 = fmthd; c1; c1 = c1->c_next)
c1->c_flags &= ~HDROUTPUT;
free_queue (&msghd, &msgtl);
for (c1 = fmthd; c1; c1 = c1->c_next)
c1->c_flags &= ~HDROUTPUT;
+
+ a = arglist_head;
+ while (a) {
+ if (a->a_nfs)
+ free(a->a_nfs);
+ a2 = a->a_next;
+ free(a);
+ a = a2;
+ }
return exitstat;
}
}
return exitstat;
}
}