Blob Blame Raw
diff --git a/build/files.c b/build/files.c
index 30061cf..df1eedf 100644
--- a/build/files.c
+++ b/build/files.c
@@ -1481,7 +1481,7 @@ static rpmRC addFile(FileList fl, const char * diskPath,
 	}
 
 	if (fl->currentCaps) {
-	    flp->caps = fl->currentCaps;
+	    flp->caps = xstrdup(fl->currentCaps);
 	} else {
 	    flp->caps = xstrdup("");
 	}