[apparmor] Memory leaks in parser/parser_regex.c (at least)
Seth Arnold
seth.arnold at canonical.com
Thu Aug 27 19:16:22 UTC 2015
On Wed, Aug 26, 2015 at 10:46:15PM -0700, Steve Beattie wrote:
> > Looks like a legitimate type mismatch error when the objects are
> > deleted.
>
> Try the following patch:
> ---
> parser/libapparmor_re/expr-tree.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: b/parser/libapparmor_re/expr-tree.h
> ===================================================================
> --- a/parser/libapparmor_re/expr-tree.h
> +++ b/parser/libapparmor_re/expr-tree.h
> @@ -672,7 +672,7 @@ public:
>
> ~hashedNodeVec()
> {
> - delete nodes;
> + delete[] nodes;
> }
>
> unsigned long size()const { return len; }
Acked-by: Seth Arnold <seth.arnold at canonical.com>
Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20150827/4f16ff26/attachment.pgp>
More information about the AppArmor
mailing list