Fix segfault when building more than one rpm (RhBug:675565)
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 7 Feb 2011 07:15:29 +0000 (09:15 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 7 Feb 2011 07:18:47 +0000 (09:18 +0200)
- Remember to set the static string cache pointer to NULL on free, duh

lib/rpmug.c

index 2bb18e5..b365e4a 100644 (file)
@@ -198,5 +198,5 @@ void rpmugFree(void)
     rpmugGid(NULL, NULL);
     rpmugUname(-1);
     rpmugGname(-1);
-    strCacheFree(strStash);
+    strStash = strCacheFree(strStash);
 }