- add solv_strdup(), rename repo_freeallrepos() to pool_freeallrepos()
[platform/upstream/libsolv.git] / ext / repo_zyppdb.c
index 84c2984..e31ecc7 100644 (file)
@@ -105,7 +105,7 @@ find_attr(const char *txt, const char **atts, int dup)
   for (; *atts; atts += 2)
     {
       if (!strcmp(*atts, txt))
-        return dup ? strdup(atts[1]) : atts[1];
+        return dup ? solv_strdup(atts[1]) : atts[1];
     }
   return 0;
 }