Module: sip-router
Branch: master
Commit: 74743d6ef3bf74c1226ba5a1b6bebfbe19b06b93
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=74743d6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed May 14 23:03:19 2014 +0200
db_flatstore: free result before returning null on no more pkg
- partial allocation when doing an incomplete new connection
---
modules/db_flatstore/km_flat_con.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/db_flatstore/km_flat_con.c b/modules/db_flatstore/km_flat_con.c
index c4f38bb..5a6ae40 100644
--- a/modules/db_flatstore/km_flat_con.c
+++ b/modules/db_flatstore/km_flat_con.c
@@ -115,6 +115,7 @@ struct flat_con* flat_new_connection(struct flat_id* id)
fn = get_name(id);
if (fn==0){
LM_ERR("get_name() failed\n");
+ pkg_free(res);
return 0;
}