* fixed a couple of memory leaks in the BeOS-specific (attribute related)
  code of zip

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30653 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe
2009-05-06 20:34:28 +00:00
parent f5b22bcfa8
commit 05b2d32351
+6
View File
@@ -746,6 +746,8 @@ local int add_Be_ef( struct zlist far *z )
compbuff = attrbuff;
flags = EB_BE_FL_NATURAL;
} else {
free( attrbuff );
}
/* Check to see if we really have enough room in the EF for the data. */
@@ -761,6 +763,7 @@ local int add_Be_ef( struct zlist far *z )
z->ext = 0;
}
if( l_ef == NULL ) {
free( compbuff );
return ZE_MEM;
}
z->extra = l_ef;
@@ -773,6 +776,7 @@ local int add_Be_ef( struct zlist far *z )
z->cext = 0;
}
if( c_ef == NULL ) {
free( compbuff );
return ZE_MEM;
}
z->cextra = c_ef;
@@ -805,6 +809,8 @@ local int add_Be_ef( struct zlist far *z )
z->cext += EB_C_BE_SIZE;
free( compbuff );
return ZE_OK;
}