diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-04-08 12:04:33 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-06-07 14:35:40 +0200 |
commit | 7a2e1a0a7a575c64eaf050c8ec08e5b36e4acfad (patch) | |
tree | c3fda7a6c0202341612fd1ab489974abe2ce7e00 /include/sqfs/inode.h | |
parent | a49a5bc6253883f8dab06d5bae7e5453008da164 (diff) |
Fix: libsquashfs: add sqfs_free() function
On systems like Windows, the dynamic library and applications can
easily end up being linked against different runtime libraries, so
applications cannot be expected to be able to free() any malloc'd
pointer that the library returns.
This commit adds an sqfs_free function so the application can pass
pointers back to the library to call the correct free() implementation.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/sqfs/inode.h')
-rw-r--r-- | include/sqfs/inode.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sqfs/inode.h b/include/sqfs/inode.h index 5359b54..0bc33db 100644 --- a/include/sqfs/inode.h +++ b/include/sqfs/inode.h @@ -718,7 +718,8 @@ SQFS_API int sqfs_inode_get_file_block_start(const sqfs_inode_generic_t *inode, * fiddles the raw data out into a propperly aligned, external structure. * * @param inode A pointer to an inode. - * @param out Returns the index entry. Can be freed with a single free call. + * @param out Returns the index entry. Can be freed with a single + * @ref sqfs_free call. * @param index An index value between 0 and inodex_count. * * @return Zero on success, @ref SQFS_ERROR_OUT_OF_BOUNDS if the given index |