about summary refs log tree commit diff
path: root/posix/spawn_faction_destroy.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2018-11-06 16:08:12 +0100
committerFlorian Weimer <fweimer@redhat.com>2018-11-06 16:08:12 +0100
commit4a938cb273e164a475dc123cc80ea6354d7248d4 (patch)
tree607dad9fb23f1a248a8009758c03115528dde294 /posix/spawn_faction_destroy.c
parent7597b0c7f711a6918d5804e08508817c72916376 (diff)
downloadglibc-4a938cb273e164a475dc123cc80ea6354d7248d4.tar.gz
glibc-4a938cb273e164a475dc123cc80ea6354d7248d4.tar.xz
glibc-4a938cb273e164a475dc123cc80ea6354d7248d4.zip
posix: New function posix_spawn_file_actions_addchdir_np [BZ #17405]
Diffstat (limited to 'posix/spawn_faction_destroy.c')
-rw-r--r--posix/spawn_faction_destroy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/posix/spawn_faction_destroy.c b/posix/spawn_faction_destroy.c
index 2a2de4e41d..05ca9dc13b 100644
--- a/posix/spawn_faction_destroy.c
+++ b/posix/spawn_faction_destroy.c
@@ -33,6 +33,9 @@ __posix_spawn_file_actions_destroy (posix_spawn_file_actions_t *file_actions)
 	case spawn_do_open:
 	  free (sa->action.open_action.path);
 	  break;
+	case spawn_do_chdir:
+	  free (sa->action.chdir_action.path);
+	  break;
 	case spawn_do_close:
 	case spawn_do_dup2:
 	  /* No cleanup required.  */