summaryrefslogtreecommitdiff
path: root/source3/printing/print_iprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/printing/print_iprint.c')
-rw-r--r--source3/printing/print_iprint.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/printing/print_iprint.c b/source3/printing/print_iprint.c
index fc60667628..04b096a8a5 100644
--- a/source3/printing/print_iprint.c
+++ b/source3/printing/print_iprint.c
@@ -1074,16 +1074,13 @@ static int iprint_queue_get(const char *sharename,
if (qcount >= qalloc) {
qalloc += 16;
- temp = SMB_REALLOC_ARRAY(queue, print_queue_struct, qalloc);
+ queue = SMB_REALLOC_ARRAY(queue, print_queue_struct, qalloc);
- if (temp == NULL) {
+ if (queue == NULL) {
DEBUG(0,("iprint_queue_get: Not enough memory!"));
qcount = 0;
- SAFE_FREE(queue);
goto out;
}
-
- queue = temp;
}
temp = queue + qcount;