Plug memory leak in verify_row()
Leak introduced in commit b30c83cd
, v4.3.28.
This commit is contained in:
parent
354664eef2
commit
6104d534e9
1 changed files with 3 additions and 1 deletions
|
@ -158,7 +158,7 @@ verify_row(int type, int row)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empobj_in_use(type, row_ref))
|
if (!empobj_in_use(type, row_ref))
|
||||||
return ret_val;
|
goto out;
|
||||||
|
|
||||||
for (i = 0; ca[i].ca_name; ++i) {
|
for (i = 0; ca[i].ca_name; ++i) {
|
||||||
if (ca[i].ca_get)
|
if (ca[i].ca_get)
|
||||||
|
@ -188,6 +188,8 @@ verify_row(int type, int row)
|
||||||
}
|
}
|
||||||
} while (++j < n);
|
} while (++j < n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
out:
|
||||||
if (!(flags & EFF_MEM))
|
if (!(flags & EFF_MEM))
|
||||||
free(row_ref);
|
free(row_ref);
|
||||||
return ret_val;
|
return ret_val;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue