namespace: Fix extension release memory leak
authormaia x. <maia+git@quatern.org>
Mon, 19 Aug 2024 19:47:21 +0000 (12:47 -0700)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 20 Aug 2024 00:40:52 +0000 (09:40 +0900)
commit010ea061fceb84d36259d576f52c09b940d0d615
tree9d6cbd0e87c17c5687b30fd8b76a65e621dfedaf
parent4cf7a676af9a79ff418227d8ff488dfca6f243ab
namespace: Fix extension release memory leak

In apply_one_mount(), in the MOUNT_EXTENSION_DIRECTORY case,
char **extension_release was used as a return pointer twice but only
cleaned up once in the end. Fix it by removing duplicate code that
was causing this issue.

Fixes issue introduced in 55ea4ef096543d2bceea9315868d5aca945d7a57.
src/core/namespace.c