dl/dlopen: fix memory leak
Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
Этот коммит содержится в:
родитель
b80cd56326
Коммит
6b14e47237
@ -1,5 +1,8 @@
|
|||||||
|
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
|
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
|
||||||
|
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
|
||||||
|
* reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -202,6 +205,7 @@ static int dlopen_foreachfile(const char *search_path,
|
|||||||
/* Skip libtool files */
|
/* Skip libtool files */
|
||||||
if (strcmp(ptr, ".la") == 0 ||
|
if (strcmp(ptr, ".la") == 0 ||
|
||||||
strcmp(ptr, ".lo") == 0) {
|
strcmp(ptr, ".lo") == 0) {
|
||||||
|
free (abs_name);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user