Skip to content

Commit 88141b3

Browse files
committed
Merge pull request open-mpi#601 from hjelmn/v2.x_leak
dl/dlopen: fix memory leak
2 parents f2b1213 + 1917815 commit 88141b3

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)