Commit f0e6a3ca authored by Russ Cox's avatar Russ Cox

dangling pointer bug (thanks valgrind)

R=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=29881
CL=29885
parent 3a0df4c4
......@@ -59,7 +59,7 @@ ilookup(char *name)
if(x->name[0] == name[0] && strcmp(x->name, name) == 0)
return x;
x = mal(sizeof *x);
x->name = name;
x->name = strdup(name);
x->hash = ihash[h];
ihash[h] = x;
nimport++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment