From 8f67e014902604a7e8b2ec5bdd175ee311f92287 Mon Sep 17 00:00:00 2001 From: sweetshore Date: Fri, 14 Jul 2017 19:32:29 +0300 Subject: [PATCH] Memory leak fix --- lib/crf/src/crf1d_model.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crf/src/crf1d_model.c b/lib/crf/src/crf1d_model.c index 5a7aef6b..c6942e32 100644 --- a/lib/crf/src/crf1d_model.c +++ b/lib/crf/src/crf1d_model.c @@ -776,7 +776,7 @@ crf1dm_t* crf1dm_new(const char *filename) fseek(fp, 0, SEEK_SET); buffer = buffer_orig = (uint8_t*)malloc(size + 16); - if (buffer_orig = NULL) { + if (buffer_orig == NULL) { goto error_exit; }