Skip to content

Commit

Permalink
Reuse existing code from 7zAlloc.
Browse files Browse the repository at this point in the history
  • Loading branch information
fancycode committed Mar 30, 2019
1 parent 5bfedf1 commit a0c84da
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions common-alloc.h
Expand Up @@ -18,18 +18,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#include "7zAlloc.h"

#include <stdint.h>
#include <stdlib.h>

#include "7zTypes.h"

static void *LzmaAlloc(ISzAllocPtr p, size_t size) {
return malloc(size);
}

static void LzmaFree(ISzAllocPtr p, void *address) {
free(address);
}

static ISzAlloc CommonAlloc = {LzmaAlloc, LzmaFree};
static ISzAlloc CommonAlloc = {SzAlloc, SzFree};

0 comments on commit a0c84da

Please sign in to comment.