Blame rpm-4.9.0-beta1-rpmugfree.patch
|
Panu Matilainen |
05eaef |
commit ec031020eb7ed9a0cc3d086bcd7ae7611eb308fc
|
|
Panu Matilainen |
05eaef |
Author: Panu Matilainen <pmatilai@redhat.com>
|
|
Panu Matilainen |
05eaef |
Date: Mon Feb 7 09:15:29 2011 +0200
|
|
Panu Matilainen |
05eaef |
|
|
Panu Matilainen |
05eaef |
Fix segfault when building more than one rpm (RhBug:675565)
|
|
Panu Matilainen |
05eaef |
- Remember to set the static string cache pointer to NULL on free, duh
|
|
Panu Matilainen |
05eaef |
|
|
Panu Matilainen |
05eaef |
diff --git a/lib/rpmug.c b/lib/rpmug.c
|
|
Panu Matilainen |
05eaef |
index 2bb18e5..b365e4a 100644
|
|
Panu Matilainen |
05eaef |
--- a/lib/rpmug.c
|
|
Panu Matilainen |
05eaef |
+++ b/lib/rpmug.c
|
|
Panu Matilainen |
05eaef |
@@ -198,5 +198,5 @@ void rpmugFree(void)
|
|
Panu Matilainen |
05eaef |
rpmugGid(NULL, NULL);
|
|
Panu Matilainen |
05eaef |
rpmugUname(-1);
|
|
Panu Matilainen |
05eaef |
rpmugGname(-1);
|
|
Panu Matilainen |
05eaef |
- strCacheFree(strStash);
|
|
Panu Matilainen |
05eaef |
+ strStash = strCacheFree(strStash);
|
|
Panu Matilainen |
05eaef |
}
|