From: Markus Armbruster Date: Wed, 26 Oct 2011 19:12:19 +0000 (+0200) Subject: Plug memory leak in verify_row() X-Git-Tag: v4.3.29~50 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=6104d534e9d2c57f6020591e1d9578d5fba0d70d Plug memory leak in verify_row() Leak introduced in commit b30c83cd, v4.3.28. --- diff --git a/src/lib/common/ef_verify.c b/src/lib/common/ef_verify.c index e886eb942..5325db6e7 100644 --- a/src/lib/common/ef_verify.c +++ b/src/lib/common/ef_verify.c @@ -158,7 +158,7 @@ verify_row(int type, int row) } if (!empobj_in_use(type, row_ref)) - return ret_val; + goto out; for (i = 0; ca[i].ca_name; ++i) { if (ca[i].ca_get) @@ -188,6 +188,8 @@ verify_row(int type, int row) } } while (++j < n); } + +out: if (!(flags & EFF_MEM)) free(row_ref); return ret_val;