ref: f1efd09bbb88e0c2f103b466aaa731a833932adb
parent: 344ddf5f55a3bbaec7fdca7aeb72ed684fa43ffe
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Aug 15 23:19:05 EDT 2015
mothra: fix crash
--- a/sys/src/cmd/mothra/forms.c
+++ b/sys/src/cmd/mothra/forms.c
@@ -186,7 +186,8 @@
s=pl_getattr(g->attr, "alt");
if(s==0 || *s == 0) s = f->value;
pl_htmloutput(g, g->nsp, s, f);
- g->state->image[0] = 0;
+ free(g->state->image);
+ g->state->image = 0;
g->state->width=0;
g->state->height=0;
break;