summaryrefslogtreecommitdiff
path: root/build/spec.c
diff options
context:
space:
mode:
Diffstat (limited to 'build/spec.c')
-rw-r--r--build/spec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/spec.c b/build/spec.c
index 49ac89074..52f6dc3e9 100644
--- a/build/spec.c
+++ b/build/spec.c
@@ -7,6 +7,7 @@
#include "rpmbuild.h"
#include "buildio.h"
+#include "debug.h"
extern int specedit;
extern MacroContext rpmGlobalMacroContext;
@@ -345,7 +346,7 @@ int addSource(Spec spec, Package pkg, const char *field, int tag)
sprintf(buf, "%sURL%d",
(flag & RPMBUILD_ISPATCH) ? "PATCH" : "SOURCE", num);
addMacro(spec->macros, buf, NULL, p->fullSource, RMIL_SPEC);
- xfree(body);
+ free((void *)body);
}
return 0;