git: libc/regex: Fix a reference of an uninitialized variable.

Sascha Wildner swildner at crater.dragonflybsd.org
Fri Oct 16 00:30:10 PDT 2015


commit ec01c407ff9691ccdc641c2e322e1c88cfa8a644
Author: Sascha Wildner <saw at online.de>
Date:   Fri Oct 16 09:28:54 2015 +0200

    libc/regex: Fix a reference of an uninitialized variable.
    
    If tre_bt_mem_alloc() fails, xfree() would have been called on an
    uninitialized 'buf' variable.

Summary of changes:
 contrib/tre/lib/tre-match-backtrack.c | 3 +++
 1 file changed, 3 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ec01c407ff9691ccdc641c2e322e1c88cfa8a644


-- 
DragonFly BSD source repository



More information about the Commits mailing list