summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/ldd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/ldd.c b/utils/ldd.c
index 3ea41b424..8fdd0c10b 100644
--- a/utils/ldd.c
+++ b/utils/ldd.c
@@ -653,7 +653,8 @@ int main( int argc, char** argv)
for (cur = lib_list; cur; cur=cur->next) {
free(cur->name);
cur->name=NULL;
- free(cur->path);
+ if (cur->path && cur->path != not_found)
+ free(cur->path);
cur->path=NULL;
}
lib_list=NULL;