msed: sed: free h and v

pull/82/head
Leah Neukirchen 6 years ago
parent 9f49370ae3
commit f860f2d2c1

@ -283,11 +283,16 @@ sed(char *file)
v = strndup(s, e-s); v = strndup(s, e-s);
} }
if (blaze822_chdr(msg, h)) if (blaze822_chdr(msg, h)) {
free(h);
free(v);
break; break;
}
printhdr(h, 0); printhdr(h, 0);
printf(": %s\n", v); printf(": %s\n", v);
free(h);
free(v);
break; break;

Loading…
Cancel
Save