diff options
author | yzrh <yzrh@noema.org> | 2022-12-22 11:22:41 +0000 |
---|---|---|
committer | yzrh <yzrh@noema.org> | 2022-12-22 19:48:48 +0000 |
commit | ac3b1dda63944f2cc8caaa52344774255e1956c8 (patch) | |
tree | 2fb8b24fbfe8002f39288926fa06c71100102868 /src/pdf_get.c | |
parent | 63728e1340a27b7ae629a747229871f3dc670de5 (diff) | |
download | melon-ac3b1dda63944f2cc8caaa52344774255e1956c8.tar.gz melon-ac3b1dda63944f2cc8caaa52344774255e1956c8.tar.zst |
Fix memory leak and data type.
Signed-off-by: yzrh <yzrh@noema.org>
Diffstat (limited to 'src/pdf_get.c')
-rw-r--r-- | src/pdf_get.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdf_get.c b/src/pdf_get.c index f72f4aa..4e1ec56 100644 --- a/src/pdf_get.c +++ b/src/pdf_get.c @@ -136,7 +136,7 @@ pdf_get_free_ids(pdf_object_t **pdf, int **ids, int count) if (i != id) { (*ids)[pos] = i; - if (pos == count) + if (pos == count - 1) return 0; pos++; |