about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 491bde58..f98acffe 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2089,8 +2089,8 @@ int main(int argc, const char **argv, char **env) {
             } else {
                 for(int j=0; j<tmp->size; ++j)
                     add1lib_neededlib(my_context->preload, tmp->libs[j], tmp->names[j]);
-                free_neededlib(tmp);
             }
+            free_neededlib(tmp);
         }
     }
     FreeCollection(&ld_preload);