Skip to content

Commit 1917815

Browse files
committed
dl/dlopen: fix memory leak
Signed-off-by: Nathan Hjelm <[email protected]> (cherry picked from open-mpi/ompi@6b14e47)
1 parent f2b1213 commit 1917815

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

opal/mca/dl/dlopen/dl_dlopen_module.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
12
/*
23
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
4+
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
5+
* reserved.
36
* $COPYRIGHT$
47
*
58
* Additional copyrights may follow
@@ -202,6 +205,7 @@ static int dlopen_foreachfile(const char *search_path,
202205
/* Skip libtool files */
203206
if (strcmp(ptr, ".la") == 0 ||
204207
strcmp(ptr, ".lo") == 0) {
208+
free (abs_name);
205209
continue;
206210
}
207211

0 commit comments

Comments
 (0)