diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fallback/slbt_archive_import_mri.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fallback/slbt_archive_import_mri.c b/src/fallback/slbt_archive_import_mri.c index b2e8afd..76fe25d 100644 --- a/src/fallback/slbt_archive_import_mri.c +++ b/src/fallback/slbt_archive_import_mri.c @@ -133,8 +133,10 @@ int slbt_archive_import_mri( dst = slbt_mri_argument(fdcwd,dstarchive,mridst); src = slbt_mri_argument(fdcwd,srcarchive,mrisrc); - if (!dst || !src) + if (!dst || !src) { + close(fd[1]); return SLBT_SYSTEM_ERROR(dctx,0); + } fmt = "OPEN %s\n" "ADDLIB %s\n" |