From b28e85bfaa816eda2e5b9563a62a764c8d4871d6 Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Sun, 5 Oct 2014 07:38:20 +0200
Subject: [PATCH] lib/repo_pkgdeps.c: resource leak (CID 62700)

---
 lib/repo_pkgdeps.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/lib/repo_pkgdeps.c b/lib/repo_pkgdeps.c
index 4c3c41fb..c2dccfcd 100644
--- a/lib/repo_pkgdeps.c
+++ b/lib/repo_pkgdeps.c
@@ -83,7 +83,6 @@ static int
 add_missing_reqdep(struct xbps_handle *xhp, const char *reqpkg)
 {
 	xbps_array_t mdeps;
-	xbps_string_t reqpkg_str;
 	xbps_object_iterator_t iter = NULL;
 	xbps_object_t obj;
 	unsigned int idx = 0;
@@ -95,10 +94,6 @@ add_missing_reqdep(struct xbps_handle *xhp, const char *reqpkg)
 	add_pkgdep = update_pkgdep = pkgfound = false;
 	mdeps = xbps_dictionary_get(xhp->transd, "missing_deps");
 
-	reqpkg_str = xbps_string_create_cstring_nocopy(reqpkg);
-	if (reqpkg_str == NULL)
-		return errno;
-
 	iter = xbps_array_iterator(mdeps);
 	if (iter == NULL)
 		goto out;