diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2006-02-22 20:49:33 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-02-22 20:49:33 +0000 |
commit | 16ff7cfa8ef2d50c97d79357c2b2c1fdc2bc241b (patch) | |
tree | d259cc5a0de95d478c3a21df549dbd90880147cd /lib/libalpm/group.c | |
parent | 78ffd98701b64bff74fc530db91ffc7e8768989a (diff) | |
download | pacman-16ff7cfa8ef2d50c97d79357c2b2c1fdc2bc241b.tar.xz |
improved _alpm_list_free handling
Diffstat (limited to 'lib/libalpm/group.c')
-rw-r--r-- | lib/libalpm/group.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libalpm/group.c b/lib/libalpm/group.c index 5d5ecbba..a77a8eef 100644 --- a/lib/libalpm/group.c +++ b/lib/libalpm/group.c @@ -42,8 +42,10 @@ pmgrp_t *_alpm_grp_new() return(grp); } -void _alpm_grp_free(pmgrp_t *grp) +void _alpm_grp_free(void *data) { + pmgrp_t *grp = data; + if(grp == NULL) { return; } |