Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions bblfsh/pyuast.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ static PyObject *AttributeValue(const void *node, const char *prop) {

static bool HasAttribute(const void *node, const char *prop) {
PyObject *o = AttributeValue(node, prop);
bool res = o != NULL;
if (o == NULL) {
return false;
}

Py_DECREF(o);
return res;
return true;
}

static const char *String(const void *node, const char *prop) {
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from setuptools import setup, find_packages, Extension
from setuptools.command.build_ext import build_ext

VERSION = "2.9.12"
VERSION = "2.9.13"
LIBUAST_VERSION = "v1.9.1"
SDK_VERSION = "v1.8.0"
SDK_MAJOR = SDK_VERSION.split('.')[0]
Expand Down