]> sourceware.org Git - libabigail.git/commit
Fix a memory leak in real_path
authorDodji Seketeli <dodji@redhat.com>
Thu, 18 Apr 2019 09:18:31 +0000 (11:18 +0200)
committerDodji Seketeli <dodji@redhat.com>
Thu, 18 Apr 2019 09:18:31 +0000 (11:18 +0200)
commita074b48f33ff0c657d360575e7fa9f3dc9f3e569
tree77cf2958bbccc19b61530ca82cdcb7ac3de41205
parent54488283938022ea4572d197fbcc8021a3fdaf8d
Fix a memory leak in real_path

Running the testsuite with AddressSanitizer turned on flagged a memory
leak in real_path, in abg-tools-utils.cc.

Fixed thus.

* src/abg-tools-utils.cc (real_path): Fee the returned pointer of
realpath.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-tools-utils.cc
This page took 0.035205 seconds and 5 git commands to generate.