Mailinglist Archive: zypp-commit (266 mails)

< Previous Next >
[zypp-commit] r11683 - /trunk/sat-solver/applayer/xsolvable.c
  • From: mlschroe@xxxxxxxxxxxxxxxx
  • Date: Fri, 14 Nov 2008 17:13:57 -0000
  • Message-id: <20081114171358.0EB6A3A279@xxxxxxxxxxxxxxxx>
Author: mlschroe
Date: Fri Nov 14 18:13:57 2008
New Revision: 11683

URL: http://svn.opensuse.org/viewcvs/zypp?rev=11683&view=rev
Log:
- fix mem leak

Modified:
trunk/sat-solver/applayer/xsolvable.c

Modified: trunk/sat-solver/applayer/xsolvable.c
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/applayer/xsolvable.c?rev=11683&r1=11682&r2=11683&view=diff
==============================================================================
--- trunk/sat-solver/applayer/xsolvable.c (original)
+++ trunk/sat-solver/applayer/xsolvable.c Fri Nov 14 18:13:57 2008
@@ -149,7 +149,7 @@
Queue plist;
int i, end;
Solvable *s;
- Solver *solver = solver_create(pool);
+ Solver *solver = solver_create(pool); /* XXX: who set's those flags?
*/

id = str2id( pool, name, 1 );
queue_init( &plist);
@@ -167,6 +167,7 @@

prune_to_best_arch(pool, &plist);
prune_to_best_version(solver, &plist);
+ solver_free(solver);
if (plist.count == 0) {
return NULL;
}

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages