plug mem leak in selection_make_matchdeps
authorMichael Schroeder <mls@suse.de>
Fri, 20 Sep 2013 16:33:01 +0000 (18:33 +0200)
committerMichael Schroeder <mls@suse.de>
Fri, 20 Sep 2013 16:33:01 +0000 (18:33 +0200)
src/selection.c

index a2dd31b..fb1baf6 100644 (file)
@@ -940,6 +940,7 @@ selection_make_matchdeps(Pool *pool, Queue *selection, const char *name, int fla
        queue_push2(selection, SOLVER_SOLVABLE | SOLVER_NOAUTOSET, p);
     }
   queue_free(&q);
+  solv_free(rname);
   if (!selection->count)
     return 0;
   if ((flags & SELECTION_FLAT) != 0)