[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
leak? Re: [gnugo-devel] owl goal dragon gets cut
From: |
Douglas Ridgway |
Subject: |
leak? Re: [gnugo-devel] owl goal dragon gets cut |
Date: |
Mon, 30 Aug 2004 07:59:13 -0600 (MDT) |
On Mon, 23 Aug 2004, Arend Bayer wrote:
> +static void
> +owl_test_cuts(char goal[BOARDMAX], int color, int cuts[MAX_CUTS])
> +{
[...]
> + if (found_cut) {
[...]
> + struct connection_data* conn_data;
[...]
> + conn_data = malloc(sizeof(struct connection_data) * num_components);
Does this need to get freed somewhere? If so, would this be a good place?
doug.
Index: engine/owl.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/owl.c,v
retrieving revision 1.219
diff -u -w -u -r1.219 owl.c
--- engine/owl.c 24 Aug 2004 14:39:53 -0000 1.219
+++ engine/owl.c 30 Aug 2004 04:20:42 -0000
@@ -4789,6 +4789,7 @@
showboard(0);
componentdump(component2);
}
+ free(conn_data);
}
sgf_dumptree = save_sgf_dumptree;
count_variations = save_count_variations;
leak? Re: [gnugo-devel] owl goal dragon gets cut,
Douglas Ridgway <=