X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firgraph.c;h=81d2de5886cd6e47d43023336b4be43e5c090f14;hb=b597c7fd473086ca6374b2abbdf129f595c156d0;hp=0f0526a9765ef63e653547ede7fcd3714c7d61f2;hpb=e30e5834fd8c1c3a7d28fc66e99b91a84993bde8;p=libfirm diff --git a/ir/ir/irgraph.c b/ir/ir/irgraph.c index 0f0526a97..81d2de588 100644 --- a/ir/ir/irgraph.c +++ b/ir/ir/irgraph.c @@ -166,6 +166,10 @@ void irg_set_nloc(ir_graph *res, int n_loc) { the store. This is not the number of parameters to the procedure! */ } + if (res->loc_descriptions) { + xfree(res->loc_descriptions); + res->loc_descriptions = NULL; + } } /* Allocates a list of nodes: