about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/librarian/library.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librarian/library.c b/src/librarian/library.c
index 76fc2898..e46fe418 100755
--- a/src/librarian/library.c
+++ b/src/librarian/library.c
@@ -1024,7 +1024,7 @@ needed_libs_t* new_neededlib(int n)
 }
 void free_neededlib(needed_libs_t* needed)
 {
-    if(needed)
+    if(!needed)
         return;
     free(needed->libs);
     free(needed->names);