From 3cf8a333d04cd8b55edfe63bd8f4dd322a88a4d0 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 26 Apr 2007 20:15:51 -0400 Subject: Remove FREEGRP macro and correctly type _alpm_grp_free Signed-off-by: Dan McGee --- lib/libalpm/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm/sync.c') diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 73c61873..10d1eb61 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -82,13 +82,13 @@ void _alpm_sync_free(pmsyncpkg_t *sync) return; } + /* TODO wow this is ugly */ if(sync->type == PM_SYNC_TYPE_REPLACE) { FREELISTPKGS(sync->data); } else { FREEPKG(sync->data); } FREE(sync); - sync = NULL; } /* Find recommended replacements for packages during a sync. -- cgit v1.2.3-24-g4f1b