Skip to content

Commit a1cdbba

Browse files
committed
Fix memory leak.
1 parent f14413b commit a1cdbba

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

python-jsonic.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ PyJsonic_JsonicType_dealloc(
5151
) {
5252
jsonic_free_addr(self->node);
5353
jsonic_free_addr(self->from);
54+
free(self->json);
5455
Py_TYPE(self)->tp_free((PyObject *) self);
5556
}
5657

python-jsonic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#include "lib/jsonic/jsonic.h"
1818

19-
#define PYJSONIC_VERSION "1.3"
19+
#define PYJSONIC_VERSION "1.4"
2020

2121
typedef struct {
2222
PyObject_HEAD

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = pyjsonic
3-
version = 1.3
3+
version = 1.4
44
author = Oğuzhan Eroğlu
55
author-email = [email protected]
66
home-page = https://github.com/rohanrhu/python-jsonic

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
setup(
2727
name = "pyjsonic",
28-
version = "1.3",
28+
version = "1.4",
2929
description = "Python bindings for Jsonic JSON reader library.",
3030
long_description = long_description,
3131
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)