From 18a92867fcea1676df27692e04e4f49d2b832795 Mon Sep 17 00:00:00 2001 From: Omer Katz Date: Wed, 21 May 2014 11:10:24 +0300 Subject: [PATCH] Removed wrong call to zfree that caused a segfault. --- src/edge.c | 2 +- tests/bench_str.csv | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/edge.c b/src/edge.c index dedd6a0..32ce06d 100644 --- a/src/edge.c +++ b/src/edge.c @@ -74,7 +74,7 @@ node * r3_edge_branch(edge *e, int dl) { char *op = e->pattern; e->pattern = strndup(e->pattern, dl); e->pattern_len = dl; - zfree(op); + return new_child; } diff --git a/tests/bench_str.csv b/tests/bench_str.csv index 603fd34..22df891 100644 --- a/tests/bench_str.csv +++ b/tests/bench_str.csv @@ -440,3 +440,4 @@ 1400607700,13972490.11 1400655532,6648299.49 1400655542,6685928.45 +1400659046,19754150.71