Skip to content

Commit 47574c4

Browse files
committed
Do not free groups list
Fixes #31
1 parent f8a7092 commit 47574c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

alpm/src/db.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ impl<'h> Db<'h> {
149149
}
150150

151151
#[doc(alias = "groupcache")]
152-
pub fn groups(&self) -> Result<AlpmListMut<'h, Group<'h>>> {
152+
pub fn groups(&self) -> Result<AlpmList<'h, Group<'h>>> {
153153
let groups = unsafe { alpm_db_get_groupcache(self.as_ptr()) };
154154
self.handle.check_null(groups)?;
155-
unsafe { Ok(AlpmListMut::from_parts(self.handle, groups)) }
155+
unsafe { Ok(AlpmList::from_parts(self.handle, groups)) }
156156
}
157157

158158
pub fn siglevel(&self) -> SigLevel {

0 commit comments

Comments
 (0)