summaryrefslogtreecommitdiffstats
path: root/vpp-japi/japi
diff options
context:
space:
mode:
Diffstat (limited to 'vpp-japi/japi')
-rw-r--r--vpp-japi/japi/vppjni.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vpp-japi/japi/vppjni.c b/vpp-japi/japi/vppjni.c
index f7047bb0c81..83090cf2e74 100644
--- a/vpp-japi/japi/vppjni.c
+++ b/vpp-japi/japi/vppjni.c
@@ -901,6 +901,8 @@ static jintArray create_array_of_bd_ids(JNIEnv * env, jint bd_id)
(*env)->SetIntArrayRegion(env, bdidArray, 0, vec_len(buf), (int*)buf);
+ vec_free(buf);
+
return bdidArray;
}