about summary refs log tree commit diff
path: root/elf/dl-load.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r--elf/dl-load.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c
index 1a84e0fe43..98d25b827d 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -578,6 +578,7 @@ decompose_rpath (struct r_search_path_struct *sps,
 						  * sizeof (*result));
   if (result == NULL)
     {
+      free (copy);
       errstring = N_("cannot create cache for search path");
     signal_error:
       _dl_signal_error (ENOMEM, NULL, NULL, errstring);