projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f37395
)
free memory on error
author
aland
<aland>
Fri, 28 Dec 2007 21:02:14 +0000
(21:02 +0000)
committer
aland
<aland>
Fri, 28 Dec 2007 21:02:14 +0000
(21:02 +0000)
src/modules/rlm_sql/sql.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_sql/sql.c
b/src/modules/rlm_sql/sql.c
index
f3319bf
..
41a0b19
100644
(file)
--- a/
src/modules/rlm_sql/sql.c
+++ b/
src/modules/rlm_sql/sql.c
@@
-104,6
+104,7
@@
int sql_init_socketpool(SQL_INST * inst)
#ifdef HAVE_PTHREAD_H
rcode = pthread_mutex_init(&sqlsocket->mutex,NULL);
if (rcode != 0) {
+ free(sqlsocket);
radlog(L_ERR, "rlm_sql: Failed to init lock: %s",
strerror(errno));
return 0;